TcpClient overview
Public Constructors
TcpClient Constructor Supported by the .NET Compact Framework. | Overloaded. Initializes a new instance of the TcpClient class. |
Public Properties
LingerState Supported by the .NET Compact Framework. | Gets or sets information about the sockets linger time. |
NoDelay Supported by the .NET Compact Framework. | Gets or sets a value that disables a delay when send or receive buffers are not full. |
ReceiveBufferSize Supported by the .NET Compact Framework. | Gets or sets the size of the receive buffer. |
ReceiveTimeout | Gets or sets the amount of time a TcpClient will wait to receive data once a read operation is initiated. |
SendBufferSize Supported by the .NET Compact Framework. | Gets or sets the size of the send buffer. |
SendTimeout | Gets or sets the amount of time a TcpClient will wait for a send operation to complete successfully. |
Public Methods
Close Supported by the .NET Compact Framework. | Closes the TCP connection and releases all resources associated with the TcpClient. |
Connect Supported by the .NET Compact Framework. | Overloaded. Connects the client to a remote TCP host using the specified host name and port number. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
GetHashCode (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. |
GetStream Supported by the .NET Compact Framework. | Returns the NetworkStream used to send and receive data. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Protected Properties
Active | Gets or set a value that indicates whether a connection has been made. |
Client | Gets or sets the underlying Socket. |
Protected Methods
Dispose Supported by the .NET Compact Framework. | Releases the unmanaged resources used by the TcpClient and optionally releases the managed resources. |
Finalize Supported by the .NET Compact Framework. | Overridden. Frees resources used by the TcpClient class.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (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