Skip to main content

TcpClient Class

Namespace: System.Net.Sockets · Assembly: GHIElectronics.TinyCLR.Networking

No description available.

public class TcpClient : IDisposable

Constructors

TcpClient()

public TcpClient() : this(AddressFamily.Unknown)

No description available.

TcpClient(AddressFamily family)

public TcpClient(AddressFamily family)

No description available.

ParameterTypeDescription
familyAddressFamily

TcpClient(IPEndPoint localEP)

public TcpClient(IPEndPoint localEP)

No description available.

ParameterTypeDescription
localEPIPEndPoint

TcpClient(string hostname, int port)

public TcpClient(string hostname, int port) : this(AddressFamily.Unknown)

No description available.

ParameterTypeDescription
hostnamestring
portint

Properties

Active

protected bool Active { get; set; }

No description available.

Available

public int Available { get; }

No description available.

Client

public Socket Client { get; set; }

No description available.

Connected

public bool Connected { get; }

Whether or not the device is connected. (inherited)

ReceiveBufferSize

public int ReceiveBufferSize { get; set; }

No description available.

SendBufferSize

public int SendBufferSize { get; set; }

No description available.

ReceiveTimeout

public int ReceiveTimeout { get; set; }

No description available.

SendTimeout

public int SendTimeout { get; set; }

No description available.

Methods

Connect(string hostname, int port)

public void Connect(string hostname, int port)

No description available.

ParameterTypeDescription
hostnamestring
portint

Connect(IPAddress address, int port)

public void Connect(IPAddress address, int port)

No description available.

ParameterTypeDescription
addressIPAddress
portint

Connect(IPEndPoint remoteEP)

public void Connect(IPEndPoint remoteEP)

No description available.

ParameterTypeDescription
remoteEPIPEndPoint

Connect(IPAddress[] ipAddresses, int port)

public void Connect(IPAddress[] ipAddresses, int port)

No description available.

ParameterTypeDescription
ipAddressesIPAddress[]
portint

GetStream()

public NetworkStream GetStream()

No description available.

Returns NetworkStream

Close()

public void Close()

When overridden by a descendant class, closes the response stream. (inherited)

Dispose(bool disposing)

protected virtual void Dispose(bool disposing)

Closes a response stream, if present. (inherited)

ParameterTypeDescription
disposingboolNot used.

Dispose()

public void Dispose()

Releases buffered memory (the unmanaged firmware/application buffers). (inherited)