Table of Contents

Class StreamPacketChannelOptions

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

Represents the options of a StreamPacketChannel.

public class StreamPacketChannelOptions
Inheritance
StreamPacketChannelOptions
Inherited Members

Properties

AutoDisposePackets

Gets a value indicating whether the channel disposes each packet once sent.

public required bool AutoDisposePackets { get; init; }

Property Value

bool

Blocking

Gets a value indicating whether a send to a full queue waits for room; otherwise, the queue drops its oldest packet.

public required bool Blocking { get; init; }

Property Value

bool

BufferSize

Gets or sets the sizes of the channel's send and receive buffers. The default is ConnectionPacketBufferSize.

public TransferBufferSize BufferSize { get; set; }

Property Value

TransferBufferSize

ChannelId

Gets the channel's ID.

public required string ChannelId { get; init; }

Property Value

string

Lifespan

Gets how long the channel lives before it closes itself, or null for as long as its connection.

public required TimeSpan? Lifespan { get; init; }

Property Value

TimeSpan?

RequestTime

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

public required DateTime RequestTime { get; init; }

Property Value

DateTime

StreamConnection

Gets the connection that carries the channel's packets, which the channel owns.

public required IStreamConnection StreamConnection { get; init; }

Property Value

IStreamConnection

TrafficMeter

Gets the meter that counts the channel's traffic and holds its reads to the session's receive limit, or null.

public TrafficMeter? TrafficMeter { get; init; }

Property Value

TrafficMeter