Table of Contents

Class PacketTransport

Namespace
VpnHood.Net.PacketTransports
Assembly
VpnHood.Net.PacketTransports.dll

Provides a packet transport that queues sent packets and hands them to the derived class in batches, up to the queue's capacity at a time, on a sending loop of its own.

public abstract class PacketTransport : PacketTransportBase, IPacketTransport, IDisposable
Inheritance
PacketTransport
Implements
Derived
Inherited Members

Constructors

PacketTransport(PacketTransportOptions)

Provides a packet transport that queues sent packets and hands them to the derived class in batches, up to the queue's capacity at a time, on a sending loop of its own.

protected PacketTransport(PacketTransportOptions options)

Parameters

options PacketTransportOptions

The queue's capacity, blocking and packet disposal.

Exceptions

ArgumentOutOfRangeException

The blocking timeout is negative or too long, or the queue's capacity is not above zero.