System.Net.Sockets Namespace

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.

Public classIPv6MulticastOptionContains option values for joining an IPv6 multicast group.
Public classIrDAClientProvides connection services for an infrared connection.
Public classIrDADeviceInfoProvides information about remote devices connected by infrared communications.
Public classIrDAListenerPlaces a socket in a listening state to monitor infrared connections from a specified service or network address.
Public classLingerOptionSpecifies whether a Socket will remain connected after a call to Close and the length of time it will remain connected, if data remains to be sent.
Public classMulticastOptionContains IPAddress values used to join and drop multicast groups.
Public classNetworkStreamProvides the underlying stream of data for network access.
Public classSocketImplements the Berkeley sockets interface.
Public classSocketExceptionThe exception that is thrown when a socket error occurs.
Public classTcpClientProvides client connections for TCP network services.
Public classTcpListenerListens for connections from TCP network clients.
Public classUdpClientProvides User Datagram Protocol (UDP) network services.

Public structureIPPacketInformationPresents the packet information from a call to ReceiveMessageFrom or EndReceiveMessageFrom.
Public structureSocketInformationEncapsulates the information that is necessary to duplicate a Socket.

Public enumerationAddressFamilySpecifies the addressing scheme that an instance of the Socket class can use.
Public enumerationIOControlCodeSpecifies the IO control codes supported by the IOControl method.
Public enumerationIrDACharacterSetDescribes the character sets supported by the device.
Public enumerationIrDAHintsDescribes an enumeration of possible device types, such as Fax.
Public enumerationProtocolFamilySpecifies the type of protocol that an instance of the Socket class can use.
Public enumerationProtocolTypeSpecifies the protocols that the Socket class supports.
Public enumerationSelectModeDefines the polling modes for the Socket.Poll method.
Public enumerationSocketErrorDefines error codes for the Socket class.
Public enumerationSocketFlagsSpecifies socket send and receive behaviors.
Public enumerationSocketInformationOptionsDescribes states for a Socket.
Public enumerationSocketOptionLevelDefines socket option levels for the Socket.SetSocketOption and Socket.GetSocketOption methods.
Public enumerationSocketOptionNameDefines configuration option names.
Public enumerationSocketShutdownDefines constants that are used by the Socket.Shutdown method.
Public enumerationSocketTypeSpecifies the type of socket that an instance of the Socket class represents.
Public enumerationTransmitFileOptionsThe TransmitFileOptions enumeration defines values used in file transfer requests.