Table of Contents

Namespace System.Net.Sockets

Classes

LingerOption

Contains information for a socket's linger time, the amount of time it will remain after closing if data remains to be sent.

MulticastOption

Contains option values for IP multicast management on socket using SetSocketOption(SocketOptionLevel, SocketOptionName, byte[])

NetworkStream

Provides the underlying stream of data for network access.

Socket

Implements the Berkeley sockets interface.

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. Can be used for both client and server roles.

Enums

AddressFamily

Specifies the address families that an instance of the Socket

ProtocolFamily

Specifies the type of protocol that an instance of the Socket

ProtocolType

Specifies the protocols that the Socket class supports.

SelectMode

Specifies the mode for polling the status of a socket.

SocketError

Defines socket error constants.

SocketFlags

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

SocketOptionLevel

Defines socket option levels for the Socket class.

SocketOptionName

Defines socket option names for the Socket class.

SocketType

Specifies the type of socket an instance of the Socket class represents.