Interface IChannel
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
LastActivityTime
Gets when the channel last sent or received, in UTC.
DateTime LastActivityTime { get; }
Property Value
State
Gets the channel's state.
PacketChannelState State { get; }
Property Value
Traffic
Gets what the channel has sent and received.
Traffic Traffic { get; }
Property Value
Methods
Start()
Starts the channel, which then reads from its peer.
void Start()