System.Net.Sockets Namespace

May 11, 2014

The System.Net.Sockets namespace provides a managed implementation of the sockets networking interface for developers who need to tightly control access to the network. On Windows, the System.Net.Sockets namespace provides a managed implementation of the Windows Sockets (Winsock) interface. On Apple Mac OS X, the System.Net.Sockets namespace provides a managed implementation of the sockets interface based on Berkeley Software Distribution (BSD) UNIX.

The System.Net.Sockets namespace provides a mechanism for real-time duplex communication with remote network resources and enables higher-level APIs to communicate over a bi-directional transport. This also allows an application to interoperate as a client with existing TCP services.

The System.Net.Sockets namespace in Windows Phone has added support for UDP multicast clients.

For additional socket methods for Windows Phone, see SocketExtensions.

  ClassDescription
Public classSocketImplements the Berkeley sockets interface.
Public classSocketAsyncEventArgsRepresents an asynchronous socket operation.
Public classSocketExceptionThe exception that is thrown when a socket error occurs.
Public classUdpAnySourceMulticastClientA client receiver for multicast traffic from any source, also known as Any Source Multicast (ASM) or Internet Standard Multicast (ISM).
Public classUdpSingleSourceMulticastClientA client receiver for multicast traffic from a single source, also known as Source Specific Multicast (SSM).

  EnumerationDescription
Public enumerationAddressFamilySpecifies the addressing scheme that an instance of the Socket class can use.
Public enumerationProtocolTypeSpecifies the protocol that the Socket class supports.
Public enumerationSocketAsyncOperationThe type of asynchronous socket operation most recently performed with this object.
Public enumerationSocketErrorDefines error codes for the Socket class.
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.

Reference

Other Resources

Show:
© 2014 Microsoft