Mono Class Library: Overview

System.Net.Sockets.TcpClient: Members

The members of System.Net.Sockets.TcpClient are listed below.

See Also: Inherited members from System.Object

Public Constructors

Constructs a new TcpClient with no connection set up.
Constructs a new TcpClient with a specified local endpoint. Use this if you want to have your connections originating from a certain port, or a certain IP (on a multi homed system).
Documentation for this section has not yet been entered.
Constructs a new TcpClient and connects to a specified host on a specified port. A quick way to set up a network connection.

Public Properties

[read-only]
Availableint. Documentation for this section has not yet been entered.
ClientSocket. The System.Net.Sockets.Socket that all network communications passes through.
[read-only]
Connectedbool. Documentation for this section has not yet been entered.
ExclusiveAddressUsebool. Documentation for this section has not yet been entered.
LingerStateLingerOption. If set, the socket will remain open after it has been instructed to close, in order to send data that remains in the buffer.
NoDelaybool. If set, outbound data will be sent at once rather than collected until enough is available to fill a packet. This is the TCP_NODELAY sockopt from BSD sockets and WinSock. For more information, look up the Nagle algorithm.
ReceiveBufferSizeint. How big the receive buffer is (from the connection socket).
ReceiveTimeoutint. How long before the socket will time out on a Receive() call.
SendBufferSizeint. How big the send buffer is (from the connection socket).
SendTimeoutint. How long before the socket will time out on a Send() call.

Protected Properties

Activebool. A flag that is 'true' if the TcpClient has an active connection

Public Methods

BeginConnect(System.Net.IPAddress, int, AsyncCallback, object) : IAsyncResult
Documentation for this section has not yet been entered.
BeginConnect(System.Net.IPAddress[], int, AsyncCallback, object) : IAsyncResult
Documentation for this section has not yet been entered.
BeginConnect(string, int, AsyncCallback, object) : IAsyncResult
Documentation for this section has not yet been entered.
Close()
Closes the socket and disposes of all managed resources. Throws System.Net.Sockets.SocketException if something goes wrong while closing the socket.
Connect(System.Net.IPEndPoint)
Connects to a specified remote endpoint.
Connect(System.Net.IPAddress, int)
Connects to an IP address on a port.
Connect(System.Net.IPAddress[], int)
Documentation for this section has not yet been entered.
Connect(string, int)
Resolves a fully qualified domain name to an IP address and connects to it on a specified port.
EndConnect(IAsyncResult)
Documentation for this section has not yet been entered.
Finalize()
Documentation for this section has not yet been entered.
GetStream() : NetworkStream
Gets the System.Net.Sockets.NetworkStream object connected to the connection socket.

Protected Methods

Dispose(bool)
Gets rid of all unmanaged resources.

Explicitly Implemented Interface Members

IDisposable.DisposeDocumentation for this section has not yet been entered.