The Socket class implements the Berkeley sockets interface.
Object
Socket
[Visual Basic] Public Class Socket [C#] public class Socket [C++] public __gc class Socket [JScript] public class Socket
The Socket class creates a managed version of an Internet transport service. Once the socket is created, it is bound to a specific end point with the Bind method. The connection to the end point is established with the Connect method, and then data is sent to the socket using the Send or SendTo methods, and data is read from the socket using the Receive and ReceiveFrom methods. After use, the Shutdown method is used to disable the socket, and the Close method closes the socket.
Namespace: System.Net.Sockets
Assembly: System.net.dll