Table of Contents

Enum TunnelStreamType

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

Specifies how a client's stream to the server is framed: as its request's X-BinaryStream header names it, or WebSocket for a WebSocket upgrade, whatever the header says.

[JsonConverter(typeof(JsonStringEnumConverter<TunnelStreamType>))]
public enum TunnelStreamType

Fields

Unknown = 0

A type the server does not know, which it does not take.

None = 1

A plain stream after an HTTP POST, which carries one request.

Standard = 2

A type that nothing uses.

WebSocket = 3

A WebSocket stream after a WebSocket upgrade, which may carry one request after another.

WebSocketNoHandshake = 4

A stream in WebSocket frames after an HTTP POST, with no upgrade, which may carry one request after another.