Table of Contents

Interface IChannel

Namespace
VpnHood.Core.Tunneling.Channels
Assembly
VpnHood.Core.Tunneling.dll

Represents a channel of a session's tunnel: what carries its packets, or one forwarded TCP connection.

public interface IChannel : IDisposable, IAsyncDisposable
Inherited Members

Remarks

Its graceful close, DisposeAsync(), is its normal end, which hands a reusable connection back to its pool; the quick one, Dispose(), stops the channel at once and asks its connection to close, with no reuse, without waiting for it.

Properties

ChannelId

Gets the channel's ID.

string ChannelId { get; }

Property Value

string

LastActivityTime

Gets when the channel last sent or received, in UTC.

DateTime LastActivityTime { get; }

Property Value

DateTime

State

Gets the channel's state.

PacketChannelState State { get; }

Property Value

PacketChannelState

Traffic

Gets what the channel has sent and received.

Traffic Traffic { get; }

Property Value

Traffic

Methods

Start()

Starts the channel, which then reads from its peer.

void Start()