The System.Net.Sockets.SocketOptionName enumeration defines the name of each System.Net.Sockets.Socket configuration option. Sockets can be configured with the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) method.
Member Name | Description |
---|---|
AcceptConnection |
![]() The socket is listening. |
AddMembership |
![]() Add an IP group membership. |
AddSourceMembership |
![]() Join a source group. |
BlockSource |
![]() Block data from a source. |
Broadcast |
![]() Permit sending broadcast messages on the socket. |
BsdUrgent |
![]() Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off. |
ChecksumCoverage |
![]() Set or get the UDP checksum coverage. |
Debug |
![]() Record debugging information. |
DontFragment |
![]() Do not fragment IP datagrams. |
DontLinger |
![]() Close the socket gracefully without lingering. |
DontRoute |
![]() Do not route; send the packet directly to the interface addresses. |
DropMembership |
![]() Drop an IP group membership. |
DropSourceMembership |
![]() Drop a source group. |
Error |
![]() Get the error status and clear. |
ExclusiveAddressUse |
![]() Enables a socket to be bound for exclusive access. |
Expedited |
![]() Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off. |
HeaderIncluded |
![]() Indicates that the application provides the IP header for outgoing datagrams. |
HopLimit |
![]() Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4. |
IPOptions |
![]() Specifies the IP options to be inserted into outgoing datagrams. |
IpTimeToLive |
![]() Set the IP header Time-to-Live field. |
KeepAlive |
![]() Use keep-alives. |
Linger |
![]() Linger on close if unsent data is present. |
MaxConnections |
![]() Not supported; will throw a System.Net.Sockets.SocketException if used. |
MulticastInterface |
![]() Set the interface for outgoing multicast packets. |
MulticastLoopback |
![]() An IP multicast loopback. |
MulticastTimeToLive |
![]() An IP multicast Time to Live. |
NoChecksum |
![]() Send UDP datagrams with checksum set to zero. |
NoDelay |
![]() Disables the Nagle algorithm for send coalescing. |
OutOfBandInline |
![]() Receives out-of-band data in the normal data stream. |
PacketInformation |
![]() Return information about received packets. |
ReceiveBuffer |
![]() Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window. |
ReceiveLowWater |
![]() Specifies the low water mark for erload:System.Net.Sockets.Socket.Receive operations. |
ReceiveTimeout |
![]() Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the Socket.BeginSend(Byte[], int, int, SocketFlags, AsyncCallback, object) method. |
ReuseAddress |
![]() Allows the socket to be bound to an address that is already in use. |
SendBuffer |
![]() Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window. |
SendLowWater |
![]() Specifies the low water mark for erload:System.Net.Sockets.Socket.Send operations. |
SendTimeout |
![]() Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the Socket.BeginSend(Byte[], int, int, SocketFlags, AsyncCallback, object) method. |
Type |
![]() Get the socket type. |
TypeOfService |
![]() Change the IP header type of the service field. |
UnblockSource |
![]() Unblock a previously blocked source. |
UpdateAcceptContext |
![]() Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets. |
UpdateConnectContext |
![]() Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets. |
UseLoopback |
![]() Bypass hardware when possible. |