Interface ITcpClient
- Namespace
- VpnHood.Net.TcpStack.Abstractions
- Assembly
- VpnHood.Net.TcpStack.Abstractions.dll
Represents a connection an ITcpListener accepted, the way TcpClient does for a socket. Disposing it closes the connection.
public interface ITcpClient : IAsyncDisposable, IDisposable
- Inherited Members
Properties
LocalEndPoint
Gets the connection's local endpoint: the address and port the peer connected to.
IPEndPoint LocalEndPoint { get; }
Property Value
RemoteEndPoint
Gets the connection's remote endpoint: the peer's address and port.
IPEndPoint RemoteEndPoint { get; }
Property Value
Stream
Gets the stream that reads and writes the connection's data.
Stream Stream { get; }