O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SocketOptionName

Synopsis

This enumeration contains the names of socket options set by Socket.SetSocketOption(). The socket option named must be applicable to the option level from SocketOptionLevel.

public enum SocketOptionName {
   IPOptions = 1,
   Debug = 1,
   NoDelay = 1,
   NoChecksum = 1,
   HeaderIncluded = 2,
   AcceptConnection = 2,
   Expedited = 2,
   BsdUrgent = 2,
   TypeOfService = 3,
   ReuseAddress = 4,
   IpTimeToLive = 4,
   KeepAlive = 8,
   MulticastInterface = 9,
   MulticastTimeToLive = 10,
   MulticastLoopback = 11,
   AddMembership = 12,
   DropMembership = 13,
   DontFragment = 14,
   AddSourceMembership = 15,
   DropSourceMembership = 16,
   DontRoute = 16,
   BlockSource = 17,
   UnblockSource = 18,
   PacketInformation = 19,
   ChecksumCoverage = 20,
   Broadcast = 32,
   UseLoopback = 64,
   Linger = 128,
   OutOfBandInline = 256,
   SendBuffer = 4097,
   ReceiveBuffer = 4098,
   SendLowWater = 4099,
   ReceiveLowWater = 4100,
   SendTimeout = 4101,
   ReceiveTimeout = 4102,
   Error = 4103,
   Type = 4104,
   MaxConnections = 2147483647,
   DontLinger = -129,
   ExclusiveAddressUse = -5
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)SocketOptionName

Passed To

Socket.{GetSocketOption(), SetSocketOption()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required