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.
| Parameter | Type | Description |
|---|---|---|
family | AddressFamily |
TcpClient(IPEndPoint localEP)
public TcpClient(IPEndPoint localEP)
No description available.
| Parameter | Type | Description |
|---|---|---|
localEP | IPEndPoint |
TcpClient(string hostname, int port)
public TcpClient(string hostname, int port) : this(AddressFamily.Unknown)
No description available.
| Parameter | Type | Description |
|---|---|---|
hostname | string | |
port | int |
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.
| Parameter | Type | Description |
|---|---|---|
hostname | string | |
port | int |
Connect(IPAddress address, int port)
public void Connect(IPAddress address, int port)
No description available.
| Parameter | Type | Description |
|---|---|---|
address | IPAddress | |
port | int |
Connect(IPEndPoint remoteEP)
public void Connect(IPEndPoint remoteEP)
No description available.
| Parameter | Type | Description |
|---|---|---|
remoteEP | IPEndPoint |
Connect(IPAddress[] ipAddresses, int port)
public void Connect(IPAddress[] ipAddresses, int port)
No description available.
| Parameter | Type | Description |
|---|---|---|
ipAddresses | IPAddress[] | |
port | int |
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)
| Parameter | Type | Description |
|---|---|---|
disposing | bool | Not used. |
Dispose()
public void Dispose()
Releases buffered memory (the unmanaged firmware/application buffers). (inherited)