View source code
Display the source code in std/socket.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Enum std.socket.SocketOption

Specifies a socket option:

enum SocketOption : int { ... }

Enum members

NameDescription
ACCEPTCONN Listen
BROADCAST Allow transmission of broadcast messages
DEBUG Record debugging information
DONTROUTE Do not route
ERROR Retrieve and clear error status
IPV6_JOIN_GROUP Add an IP group membership
IPV6_LEAVE_GROUP Drop an IP group membership
IPV6_MULTICAST_HOPS IP multicast hops
IPV6_MULTICAST_IF IP multicast interface
IPV6_MULTICAST_LOOP IP multicast loopback
IPV6_UNICAST_HOPS IP unicast hop limit
IPV6_V6ONLY Treat wildcard bind as AF_INET6-only
KEEPALIVE Enable keep-alive packets
LINGER Linger on close if unsent data is present
OOBINLINE Receive out-of-band data in band
RCVBUF Receive buffer size
RCVLOWAT Minimum number of input bytes to process
RCVTIMEO Receive timeout
REUSEADDR Allow local reuse of address
SNDBUF Send buffer size
SNDLOWAT Minimum number of output bytes to process
SNDTIMEO Send timeout
TCP_NODELAY Disable the Nagle algorithm for send coalescing
TYPE Socket type

Authors

Christopher E. Miller, David Nadlinger, Vladimir Panteleev

License

Boost License 1.0.