Enum SocketOptionName
Defines socket option names for the Socket class.
public enum SocketOptionName
Fields
AcceptConnection = 2Socket is listening.
AddMembership = 12Add an IP group membership.
AddSourceMembership = 15Join IP group/source.
BlockSource = 17Block IP group/source.
Broadcast = 32Permit sending broadcast messages on the socket.
BsdUrgent = 2Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.
ChecksumCoverage = 20Set or get the UDP checksum coverage.
Debug = 1Record debugging information.
DontFragment = 14Don't fragment IP datagrams.
DontLinger = -129Close socket gracefully without lingering.
DontRoute = 16Do not route, send directly to interface addresses.
DropMembership = 13Drop an IP group membership.
DropSourceMembership = 16Leave IP group/source.
Error = 4103Get error status and clear.
ExclusiveAddressUse = -5Enables a socket to be bound for exclusive access.
Expedited = 2Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.
HeaderIncluded = 2Header is included with data.
HopLimit = 21Specifies 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 = 1IP options.
IpTimeToLive = 4IP time to live.
KeepAlive = 8Send keep-alives.
Linger = 128Linger on close if unsent data is present.
MaxConnections = 2147483647Maximum queue length that can be specified by Listen(int).
MulticastInterface = 9IP multicast interface. - Additional comments by mbolien: multicast interface You provide it with an SOCKADDR_IN, and that tells the system that it should receive multicast messages on that interface (if you have more than one interface). Binding the socket is not sufficient, since if the Ethernet hardware isnt set up to grab the multicast packets, it wont do good to bind the socket. Kinda like raw sockets. Unless you put the Ethernet card in promiscuous mode, youll only get stuff sent to and from your machine.
MulticastLoopback = 11IP Multicast loopback.
MulticastTimeToLive = 10IP multicast time to live.
NoChecksum = 1Send UDP datagrams with checksum set to zero.
NoDelay = 1Disables the Nagle algorithm for send coalescing.
OutOfBandInline = 256Receives out-of-band data in the normal data stream.
PacketInformation = 19Receive packet information for ipv4.
ReceiveBuffer = 4098Send low water mark.
ReceiveLowWater = 4100Receive low water mark.
ReceiveTimeout = 4102Receive timeout.
ReuseAddress = 4Allows the socket to be bound to an address that is already in use.
SendBuffer = 4097Specifies 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 = 4099Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.
SendTimeout = 4101Send timeout.
Type = 4104Get socket type.
TypeOfService = 3IP type of service and preced.
UnblockSource = 18Unblock IP group/source.
UpdateAcceptContext = 28683Updates 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 = 28688Updates 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 = 64Bypass hardware when possible.
Remarks
The SocketOptionName enumeration defines the name of each Socket configuration option. Sockets can be configured with the SetSocketOption(SocketOptionLevel, SocketOptionName, bool) method.