Networking - Enums
Tinlok provides several interfaces defining the socket creation constant, and enumerations containing a set of possible values that are known to be supported by all platforms.
AddressFamily
The AddressFamily
enumeration corresponds to AF_
constants on the BSD socket API, with the
specified members:
Name |
Description |
---|---|
|
Unspecified. Used as a hint for getaddrinfo(), not in the socket API. |
|
IPv4. |
|
IPv6. |
|
Unix domain sockets. |
SocketType
The SocketType
enumeration corresponds to SOCK_ constants on the BSD socket API, with the
specified members:
Name |
Description |
---|---|
|
Stream-based connections, such as TCP. |
|
Datagram-based connections, such as UDP. |
|
Raw sockets, for running over IP directly. |
IPProtocol
The IPProtocol
enumeration corresponds to IPROTO_
constants on the BSD socket API, with the
specified members:
Name |
Description |
---|---|
|
Usually signifies “kernel chooses the protocol”. |
|
Transport Control Protocol. |
|
Unreliable/User Datagram Protocol. |
|
Internet Control Message Protocol. |