Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TcpClient Members

TcpClient overview

Public Constructors

public constructorTcpClient Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the TcpClient class.

Public Properties

public propertyLingerState

Supported by the .NET Compact Framework.

Gets or sets information about the sockets linger time.
public propertyNoDelay

Supported by the .NET Compact Framework.

Gets or sets a value that disables a delay when send or receive buffers are not full.
public propertyReceiveBufferSize

Supported by the .NET Compact Framework.

Gets or sets the size of the receive buffer.
public propertyReceiveTimeout Gets or sets the amount of time a TcpClient will wait to receive data once a read operation is initiated.
public propertySendBufferSize

Supported by the .NET Compact Framework.

Gets or sets the size of the send buffer.
public propertySendTimeout Gets or sets the amount of time a TcpClient will wait for a send operation to complete successfully.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Closes the TCP connection and releases all resources associated with the TcpClient.
public methodConnect

Supported by the .NET Compact Framework.

Overloaded. Connects the client to a remote TCP host using the specified host name and port number.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetStream

Supported by the .NET Compact Framework.

Returns the NetworkStream used to send and receive data.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Properties

protected propertyActive Gets or set a value that indicates whether a connection has been made.
protected propertyClient Gets or sets the underlying Socket.

Protected Methods

protected methodDispose

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Overridden. Frees resources used by the TcpClient class.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

TcpClient Class | System.Net.Sockets Namespace

Show:
© 2015 Microsoft