System.Net.Sockets.TcpClient.Client Property

Gets or sets the underlying System.Net.Sockets.Socket.

Syntax

public Socket Client { get; set; }

Value

The System.Net.Sockets.Socket.

Remarks

System.Net.Sockets.TcpClient creates a System.Net.Sockets.Socket to send and receive data over a network. Classes deriving from System.Net.Sockets.TcpClient can use this property to get or set this System.Net.Sockets.Socket. Use the underlying System.Net.Sockets.Socket returned from TcpClient.Client if you require access beyond that which System.Net.Sockets.TcpClient provides. You can also use TcpClient.Client to set the underlying System.Net.Sockets.Socket to an existing System.Net.Sockets.Socket. This might be useful if you want to take advantage of the simplicity of System.Net.Sockets.TcpClient using a pre-existing System.Net.Sockets.Socket.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0