SocketOption Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types.
public enum SocketOption
type SocketOption =
- Inheritance
-
SocketOption
Fields
| Name | Value | Description |
|---|---|---|
| TcpNodelay | 1 | Disables Nagle's algorithm for this connection. |
| IpTos | 3 | Sets the type-of-service or traffic-class field in the IP header for a TCP or UDP socket. |
| SoReuseaddr | 4 | Sets the SO_REUSEADDR option for a socket. |
| SoKeepalive | 8 | Enables TCP keepalive probes after an implementation-dependent period of inactivity. |
| ReusePort | 14 | Enables or disables multiple sockets binding to the same address and port. |
| SoBindaddr | 15 | Gets the local address binding of a socket. |
| IpMulticastIf | 16 | Sets the outgoing interface for multicast packets. |
| IpMulticastLoop | 18 | Enables or disables local loopback of multicast datagrams. |
| IpMulticastIf2 | 31 | Selects the outgoing interface for multicast packets. |
| SoBroadcast | 32 | Enables or disables a socket's ability to send broadcast messages. |
| SoLinger | 128 | Specifies a linger-on-close timeout. |
| SoSndbuf | 4097 | Sets a hint for the size of platform buffers used for outgoing network I/O. |
| SoRcvbuf | 4098 | Sets a hint for the size of platform buffers used for incoming network I/O. |
| SoOobinline | 4099 | Controls whether received TCP urgent data is delivered through the socket input stream. |
| SoTimeout | 4102 | Sets a timeout on blocking socket operations. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.