Table of Contents

Interface IStreamPacketChannel

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

Represents a packet channel that is a connection, the kind a tunnel's channel manager takes: a session has several, picked by flow.

public interface IStreamPacketChannel : IPacketChannel, IPacketTransport, IChannel, IDisposable, IAsyncDisposable
Inherited Members

Remarks

Each closes with a grace, in which what is on its way still arrives, unless the channel manager, holding too many closing ones, ends it sooner. One of a developer's own must speak the close message and the grace its peer expects; a new transport goes through IStreamConnection instead.

Properties

CloseTime

Gets when the channel's close began, in UTC, or null while it is open; the channel manager lets the oldest closes go first.

DateTime? CloseTime { get; }

Property Value

DateTime?

RequestTime

Gets the time of the request that made the channel, by the client's clock.

DateTime RequestTime { get; }

Property Value

DateTime

Methods

Close()

Starts the channel's close: it is Disconnecting at once, tells its peer, and goes after its grace, or sooner where the channel manager ends it. One already closing or gone is left as it is.

void Close()