Table of Contents

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

IPEndPoint

RemoteEndPoint

Gets the connection's remote endpoint: the peer's address and port.

IPEndPoint RemoteEndPoint { get; }

Property Value

IPEndPoint

Stream

Gets the stream that reads and writes the connection's data.

Stream Stream { get; }

Property Value

Stream