TcpClient Methods

 

Namespace:   System.Net.Sockets
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodBeginConnect(IPAddress^, Int32, AsyncCallback^, Object^)

Begins an asynchronous request for a remote host connection. The remote host is specified by an IPAddress and a port number (Int32).

System_CAPS_pubmethodBeginConnect(array<IPAddress^>^, Int32, AsyncCallback^, Object^)

Begins an asynchronous request for a remote host connection. The remote host is specified by an IPAddress array and a port number (Int32).

System_CAPS_pubmethodBeginConnect(String^, Int32, AsyncCallback^, Object^)

Begins an asynchronous request for a remote host connection. The remote host is specified by a host name (String) and a port number (Int32).

System_CAPS_pubmethodClose()

Disposes this TcpClient instance and requests that the underlying TCP connection be closed.

System_CAPS_pubmethodConnect(IPAddress^, Int32)

Connects the client to a remote TCP host using the specified IP address and port number.

System_CAPS_pubmethodConnect(array<IPAddress^>^, Int32)

Connects the client to a remote TCP host using the specified IP addresses and port number.

System_CAPS_pubmethodConnect(IPEndPoint^)

Connects the client to a remote TCP host using the specified remote network endpoint.

System_CAPS_pubmethodConnect(String^, Int32)

Connects the client to the specified port on the specified host.

System_CAPS_pubmethodConnectAsync(IPAddress^, Int32)

Connects the client to a remote TCP host using the specified IP address and port number as an asynchronous operation.

System_CAPS_pubmethodConnectAsync(array<IPAddress^>^, Int32)

Connects the client to a remote TCP host using the specified IP addresses and port number as an asynchronous operation.

System_CAPS_pubmethodConnectAsync(String^, Int32)

Connects the client to the specified TCP port on the specified host as an asynchronous operation.

System_CAPS_pubmethodDispose()

Releases the managed and unmanaged resources used by the TcpClient.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources.

System_CAPS_pubmethodEndConnect(IAsyncResult^)

Ends a pending asynchronous connection attempt.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Frees resources used by the TcpClient class.(Overrides Object::Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetStream()

Returns the NetworkStream used to send and receive data.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

Return to top
Show: