Mono Class Library: System.Net.Sockets Namespace

System.Net.Sockets.SocketOptionName Enumeration

Specifies option names for use in the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) and Socket.GetSocketOption(SocketOptionLevel, SocketOptionName) methods of the System.Net.Sockets.Socket class. [Edit]
public enum SocketOptionName

Remarks

Socket options determine the behavior of an instance of the System.Net.Sockets.Socket class. Some socket options apply only to specific protocols while others apply to all types. Members of the System.Net.Sockets.SocketOptionLevel enumeration specify which protocol applies to a specific socket option. [Edit]

Members

Member NameDescription
AcceptConnection

Socket.Listen(int) has been called on the socket.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
AddMembership

Add an IP group membership.

The value associated with this option is an instance of the System.Net.Sockets.MulticastOption class.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
AddSourceMembership

Join a source group.

The value associated with this option is an instance of the System.Net.IPAddress class.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
BlockSource

Block data from a source.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Broadcast

Permit sending broadcast messages on the socket.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
BsdUrgent

Use urgent data as defined by IETF RFC 1222. This option can be set only once, and once set, cannot be turned off.

The value associated with this option is a bool data type.

The SocketOptionLevel.Tcp value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
ChecksumCoverage

Set or get UDP checksum coverage.

The value associated with this option is a bool data type.

The SocketOptionLevel.Udp value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Debug

Record debugging information when available.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
DontFragment

Do not fragment IP datagrams.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
DontLinger

Close socket gracefully without lingering.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
DontRoute

Do not route; send directly to interface addresses.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
DropMembership

Drop an IP group membership.

The value associated with this option is an instance of the System.Net.Sockets.MulticastOption class.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
DropSourceMembership

Drop a source group.

The value associated with this option is an instance of the System.Net.IPAddress class.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Error

Get the error status code, then clear the code.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
ExclusiveAddressUse

Enable a socket to be bound for exclusive access.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Expedited

Use expedited data as defined by IETF RFC 1222. This option can be set only once, and once set, cannot be turned off.

The value associated with this option is a bool data type.

The SocketOptionLevel.Tcp value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
HeaderIncluded

Application is providing the IP header for outgoing datagrams.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
HopLimitDocumentation for this section has not yet been entered. [Edit]
IPOptions

Specifies IP options to be inserted into outgoing datagrams.

The value associated with this option is a byte array.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
IpTimeToLive

Set the IP header time-to-live field.

The value associated with this option is a int data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
KeepAlive

Send keep-alives.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Linger

Linger on close if unsent data is present.

The value associated with this option is an instance of the System.Net.Sockets.LingerOption class.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
MaxConnections

Maximum queue length that can be specified by Socket.Listen(int).

The value associated with this option is a int data type.

[Edit]
MulticastInterface

Set the interface for outgoing multicast packets.

The value associated with this option is a byte array.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
MulticastLoopback

IP multicast loopback.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
MulticastTimeToLive

IP multicast time to live.

The value associated with this option is a int data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
NoChecksum

Send UDP datagrams with checksum set to zero.

The value associated with this option is a bool data type.

The SocketOptionLevel.Udp value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
NoDelay

Disable the Nagle algorithm for send coalescing.

The value associated with this option is a bool data type.

The SocketOptionLevel.Tcp value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
OutOfBandInline

Receive out-of-band data in the normal data stream.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
PacketInformationReturn information about received packets. [Edit]
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.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
ReceiveLowWater

Receive low water mark.

The value associated with this option is a int data type.

[Edit]
ReceiveTimeout

Specifies the maximum time, in milliseconds, the Socket.Receive(Byte[], int, SocketFlags) and Socket.ReceiveFrom(Byte[], int, int, SocketFlags, System.Net.EndPoint@) methods will block when attempting to receive data. If data is not received within this time, a System.Net.Sockets.SocketException exception is thrown.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
ReuseAddress

Allow the socket to be bound to an address that is already in use.

The value associated with this option is a bool data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
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.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
SendLowWater

Send low water mark.

The value associated with this option is a int data type.

[Edit]
SendTimeout

Specifies the maximum time, in milliseconds, the Socket.Send(Byte[], int, SocketFlags) and Socket.SendTo(Byte[], int, int, SocketFlags, System.Net.EndPoint) methods will block when attempting to send data. If data is not sent within this time, a System.Net.Sockets.SocketException exception is thrown.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket member of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
Type

Get the socket type, one of the members of the System.Net.Sockets.SocketType enumeration.

The value associated with this option is a int data type.

The SocketOptionLevel.Socket value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
TypeOfService

Change the IP header type of service field.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
UnblockSource

Unblock a previously blocked source.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]
UpdateAcceptContextDocumentation for this section has not yet been entered. [Edit]
UpdateConnectContextDocumentation for this section has not yet been entered. [Edit]
UseLoopback

Bypass hardware when possible.

The value associated with this option is a bool data type.

The SocketOptionLevel.IP value of the System.Net.Sockets.SocketOptionLevel enumeration applies to this option.

[Edit]

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0