mscorlib(4.0.0.0) API with additions
SocketOptionName.cs
1 namespace System.Net.Sockets
2 {
4  public enum SocketOptionName
5  {
7  Debug = 1,
11  ReuseAddress = 4,
13  KeepAlive = 8,
15  DontRoute = 0x10,
17  Broadcast = 0x20,
19  UseLoopback = 0x40,
21  Linger = 0x80,
23  OutOfBandInline = 0x100,
25  DontLinger = -129,
29  SendBuffer = 4097,
31  ReceiveBuffer = 4098,
33  SendLowWater = 4099,
35  ReceiveLowWater = 4100,
37  SendTimeout = 4101,
39  ReceiveTimeout = 4102,
41  Error = 4103,
43  Type = 4104,
45  ReuseUnicastPort = 12295,
47  MaxConnections = int.MaxValue,
49  IPOptions = 1,
51  HeaderIncluded = 2,
53  TypeOfService = 3,
55  IpTimeToLive = 4,
61  MulticastLoopback = 11,
63  AddMembership = 12,
65  DropMembership = 13,
67  DontFragment = 14,
69  AddSourceMembership = 0xF,
71  DropSourceMembership = 0x10,
73  BlockSource = 17,
75  UnblockSource = 18,
77  PacketInformation = 19,
79  HopLimit = 21,
81  IPProtectionLevel = 23,
83  IPv6Only = 27,
85  NoDelay = 1,
87  BsdUrgent = 2,
89  Expedited = 2,
91  NoChecksum = 1,
93  ChecksumCoverage = 20,
95  UpdateAcceptContext = 28683,
97  UpdateConnectContext = 28688
98  }
99 }
Set the IP header Time-to-Live field.
Change the IP header type of the service field.
Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications on...
SocketOptionName
Defines configuration option names.
Specifies the low water mark for Overload:System.Net.Sockets.Socket.Send operations.
Use urgent data as defined in RFC-1222. This option can be set only once; after it is set,...
Use expedited data as defined in RFC-1222. This option can be set only once; after it is set,...
Updates a connected socket's properties by using those of an existing socket. This is equivalent to u...
Updates an accepted socket's properties by using those of an existing socket. This is equivalent to u...
Return information about received packets.
Send without using routing tables.
Linger on close if unsent data is present.
Set the interface used for outgoing multicast packets. The interface is identified by its index....
Indicates that the application provides the IP header for outgoing datagrams.
Unblock a previously blocked source.
Close the socket gracefully without lingering.
Indicates that the system should defer ephemeral port allocation for outbound connections....
Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum m...
Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Receives out-of-band data in the normal data stream.
Disables the Nagle algorithm for send coalescing.
The Keep-Alive header, which specifies a parameter used into order to maintain a persistent connectio...
IPProtectionLevel
A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the s...
Enables a socket to be bound for exclusive access.
Set or get the UDP checksum coverage.
Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum mess...
Send UDP datagrams with checksum set to zero.
Not supported; will throw a T:System.Net.Sockets.SocketException if used.
Allows the socket to be bound to an address that is already in use.
Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous...
Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous me...
Specifies the IP options to be inserted into outgoing datagrams.
Specifies the low water mark for Overload:System.Net.Sockets.Socket.Receive operations.