This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
TCPClient Members
Public:
Constructor
Properties
LingerState |
Gets or sets the value of the connection's linger option. |
NoDelay |
Enables or disables delay when send or receive buffers are full. |
ReceiveBufferSize |
Gets or sets the size of the receive buffer in bytes. |
ReceiveTimeout |
Gets or sets the receive time out value of the connection in seconds. |
SendBufferSize |
Gets or sets the size of the send buffer in bytes. |
SendTimeout |
Gets or sets the send time out value of the connection in seconds. |
Methods
Close |
Closes the TCP connection |
Connect |
Overloaded. Connects the client to a TCP host. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetStream |
Returns the stream used to read and write data to the remote host. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
Fields
Active |
Used by the class to indicate that a connection has been made. |
Client |
Used by the class to provide the underlying network socket. |
DataStream |
Used by the class to provide the network data stream. |
See Also
TCPClient Class | System.Net.Sockets Namespace