Export (0) Print
Expand All

TcpClient Methods

The TcpClient type exposes the following members.

  Name Description
Public method BeginConnect(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).
Public method BeginConnect(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).
Public method BeginConnect(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).
Public method Close Disposes this TcpClient instance and requests that the underlying TCP connection be closed.
Public method Connect(IPEndPoint) Connects the client to a remote TCP host using the specified remote network endpoint.
Public method Connect(IPAddress, Int32) Connects the client to a remote TCP host using the specified IP address and port number.
Public method Connect(IPAddress[], Int32) Connects the client to a remote TCP host using the specified IP addresses and port number.
Public method Connect(String, Int32) Connects the client to the specified port on the specified host.
Public method ConnectAsync(IPAddress, Int32) Connects the client to a remote TCP host using the specified IP address and port number as an asynchronous operation.
Public method ConnectAsync(IPAddress[], Int32) Connects the client to a remote TCP host using the specified IP addresses and port number as an asynchronous operation.
Public method ConnectAsync(String, Int32) Connects the client to the specified TCP port on the specified host as an asynchronous operation.
Protected method Dispose Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources.
Public method EndConnect Ends a pending asynchronous connection attempt.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Frees resources used by the TcpClient class. (Overrides Object.Finalize().)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetStream Returns the NetworkStream used to send and receive data.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the TcpClient.
Top
Show:
© 2014 Microsoft