Defines socket option levels for the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) and Socket.GetSocketOption(SocketOptionLevel, SocketOptionName) methods.
The System.Net.Sockets.SocketOptionLevel enumeration defines the socket option levels that can be passed to the Socket.SetSocketOption(SocketOptionLevel, SocketOptionName, int) and Socket.GetSocketOption(SocketOptionLevel, SocketOptionName) methods. System.Net.Sockets.SocketOptionName enumerated values are grouped by System.Net.Sockets.SocketOptionLevel.
Note To use SocketOptionLevel.IPv6 on Windows XP, install Advance Networking Pack for Windows XP.
Member Name | Description |
---|---|
IP |
System.Net.Sockets.Socket options apply only to IP sockets. |
IPv6 |
System.Net.Sockets.Socket options apply only to IPv6 sockets. |
Socket |
System.Net.Sockets.Socket options apply to all sockets. |
Tcp |
System.Net.Sockets.Socket options apply only to TCP sockets. |
Udp |
System.Net.Sockets.Socket options apply only to UDP sockets. |