The
methods
of System.Net.Sockets.TcpClient are listed below. For a list of all members, see the TcpClient Members list.
See Also: Inherited members from System.Object
Public Methods
| BeginConnect(System.Net.IPAddress, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous request for a remote host connection. The remote host is specified by an System.Net.IPAddress and a port number (int).
|
| BeginConnect(System.Net.IPAddress[], int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous request for a remote host connection. The remote host is specified by an System.Net.IPAddress array and a port number (int).
|
| BeginConnect(string, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous request for a remote host connection. The remote host is specified by a host name (string) and a port number (int).
|
| Close()
Disposes this System.Net.Sockets.TcpClient instance and requests that the underlying TCP connection be closed.
|
| Connect(System.Net.IPEndPoint)
Connects the client to a remote TCP host using the specified remote network endpoint.
|
| Connect(System.Net.IPAddress, int)
Connects the client to a remote TCP host using the specified IP address and port number.
|
| Connect(System.Net.IPAddress[], int)
Connects the client to a remote TCP host using the specified IP addresses and port number.
|
| Connect(string, int)
Connects the client to the specified port on the specified host.
|
| ConnectAsync(System.Net.IPAddress, int) : System.Threading.Tasks.Task
Connects the client to a remote TCP host using the specified IP address and port number as an asynchronous operation.
|
| ConnectAsync(System.Net.IPAddress[], int) : System.Threading.Tasks.Task
Connects the client to a remote TCP host using the specified IP addresses and port number as an asynchronous operation.
|
| ConnectAsync(string, int) : System.Threading.Tasks.Task
Connects the client to the specified TCP port on the specified host as an asynchronous operation.
|
| EndConnect(IAsyncResult)
Ends a pending asynchronous connection attempt.
|
| Finalize()
Frees resources used by the System.Net.Sockets.TcpClient class.
|
| GetStream() : NetworkStream
Returns the System.Net.Sockets.NetworkStream used to send and receive data.
|
Protected Methods