Export (0) Print
Expand All

TcpClient Methods

The TcpClient type exposes the following members.

  NameDescription
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.
Protected method Dispose Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources.
Public method EndConnect Asynchronously accepts an incoming 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 a hash function for a particular type. (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

  NameDescription
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the TcpClient.
Top

Community Additions

ADD
Show:
© 2014 Microsoft