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.

  ClassDescription
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 the Close or Close methods 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 classSendPacketsElementRepresents an element in a SendPacketsElement array.
Public classSocketImplements the Berkeley sockets interface.
Public classSocketAsyncEventArgsRepresents an asynchronous socket operation.
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.

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

  EnumerationDescription
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 enumerationSocketAsyncOperationThe type of asynchronous socket operation most recently performed with this context object.
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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft