This documentation is archived and is not being maintained.
System.Net.Sockets Namespace
Visual Studio 2008
The System.Net.Sockets namespace provides a managed implementation of the Windows Sockets (Winsock) interface for developers who need to tightly control access to the network.
The TcpClient, TcpListener, and UdpClient classes encapsulate the details of creating TCP and UDP connections to the Internet.
| Class | Description | |
|---|---|---|
![]() | IPv6MulticastOption | Contains option values for joining an IPv6 multicast group. |
![]() | IrDAClient | Provides connection services for an infrared connection. |
![]() | IrDADeviceInfo | Provides information about remote devices connected by infrared communications. |
![]() | IrDAListener | Places a socket in a listening state to monitor infrared connections from a specified service or network address. |
![]() | LingerOption | Specifies whether a Socket will remain connected after a call to the Close or Close methods and the length of time it will remain connected, if data remains to be sent. |
![]() | MulticastOption | Contains IPAddress values used to join and drop multicast groups. |
![]() | NetworkStream | Provides the underlying stream of data for network access. |
![]() | SendPacketsElement | Represents an element in a SendPacketsElement array. |
![]() | Socket | Implements the Berkeley sockets interface. |
![]() | SocketAsyncEventArgs | Represents an asynchronous socket operation. |
![]() | SocketException | The exception that is thrown when a socket error occurs. |
![]() | TcpClient | Provides client connections for TCP network services. |
![]() | TcpListener | Listens for connections from TCP network clients. |
![]() | UdpClient | Provides User Datagram Protocol (UDP) network services. |
| Structure | Description | |
|---|---|---|
![]() | IPPacketInformation | Presents the packet information from a call to ReceiveMessageFrom or EndReceiveMessageFrom. |
![]() | SocketInformation | Encapsulates the information that is necessary to duplicate a Socket. |
| Enumeration | Description | |
|---|---|---|
![]() | AddressFamily | Specifies the addressing scheme that an instance of the Socket class can use. |
![]() | IOControlCode | Specifies the IO control codes supported by the IOControl method. |
![]() | IrDACharacterSet | Describes the character sets supported by the device. |
![]() | IrDAHints | Describes an enumeration of possible device types, such as Fax. |
![]() | ProtocolFamily | Specifies the type of protocol that an instance of the Socket class can use. |
![]() | ProtocolType | Specifies the protocols that the Socket class supports. |
![]() | SelectMode | Defines the polling modes for the Socket.Poll method. |
![]() | SocketAsyncOperation | The type of asynchronous socket operation most recently performed with this context object. |
![]() | SocketError | Defines error codes for the Socket class. |
![]() | SocketFlags | Specifies socket send and receive behaviors. |
![]() | SocketInformationOptions | Describes states for a Socket. |
![]() | SocketOptionLevel | Defines socket option levels for the Socket.SetSocketOption and Socket.GetSocketOption methods. |
![]() | SocketOptionName | Defines configuration option names. |
![]() | SocketShutdown | Defines constants that are used by the Socket.Shutdown method. |
![]() | SocketType | Specifies the type of socket that an instance of the Socket class represents. |
![]() | TransmitFileOptions | The TransmitFileOptions enumeration defines values used in file transfer requests. |
Show:


