Skip to main content

SocketOptionName Enum

NuGet: GHIElectronics.TinyCLR.Networking
Assembly: GHIElectronics.TinyCLR.Networking
Namespace: System.Net.Sockets

Defines socket option names for the class.

public enum SocketOptionName

Fields

NameValueDescription
Debug0x0001Record debugging information.
AcceptConnection0x0002Socket is listening.
ReuseAddress0x0004Allows the socket to be bound to an address that is already in use.
KeepAlive0x0008Send keep-alives.
DontRoute0x0010Do not route, send directly to interface addresses.
Broadcast0x0020Permit sending broadcast messages on the socket.
UseLoopback0x0040Bypass hardware when possible.
Linger0x0080Linger on close if unsent data is present.
OutOfBandInline0x0100Receives out-of-band data in the normal data stream.
DontLinger~LingerClose socket gracefully without lingering.
ExclusiveAddressUse~ReuseAddressEnables a socket to be bound for exclusive access.
SendBuffer0x1001Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.
ReceiveBuffer0x1002Send low water mark.
SendLowWater0x1003Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.
ReceiveLowWater0x1004Receive low water mark.
SendTimeout0x1005Send timeout.
ReceiveTimeout0x1006Receive timeout.
Error0x1007Get error status and clear.
Type0x1008Get socket type.
MaxConnections0x7fffffffMaximum queue length that can be specified by .
IPOptions1IP options.
HeaderIncluded2Header is included with data.
TypeOfService3IP type of service and preced.
IpTimeToLive4IP time to live.
MulticastInterface9IP 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.
MulticastTimeToLive10IP multicast time to live.
MulticastLoopback11IP Multicast loopback.
AddMembership12Add an IP group membership.
DropMembership13Drop an IP group membership.
DontFragment14Don't fragment IP datagrams.
AddSourceMembership15Join IP group/source.
DropSourceMembership16Leave IP group/source.
BlockSource17Block IP group/source.
UnblockSource18Unblock IP group/source.
PacketInformation19Receive packet information for ipv4.
HopLimit21The IPv6 hop limit for outgoing packets.
NoDelay1Disables the Nagle algorithm for send coalescing.
BsdUrgent2
Expedited2Sends data as expedited (urgent) data.
NoChecksum1
ChecksumCoverage20Udp-Lite checksum coverage.
UpdateAcceptContext0x700BUpdates the socket context after a call to accept a connection.
UpdateConnectContext0x7010Updates the socket context after a call to connect.