Table of Contents

Enum RequestCode

Namespace
VpnHood.Core.Tunneling.Messaging
Assembly
VpnHood.Core.Tunneling.dll

Specifies the kind of a client's request.

public enum RequestCode : byte

Fields

Hello = 1

A request for a session (HelloRequest).

TcpPacketChannel = 2

A stream that carries the session's packets (TcpPacketChannelRequest).

TcpForwardingChannel = 3

A stream that carries one forwarded TCP connection (TcpForwardingChannelRequest).

SessionStatus = 4

The session's status (SessionStatusRequest).

UdpPacket = 5

UDP packets in a request of their own (UdpPacketRequest), which no client sends and the server does not serve.

RewardedAd = 10

A rewarded ad the person has watched (RewardedAdRequest).

ServerCheck = 30

A check that the server is there (ServerCheckRequest).

Bye = 50

The session's end (ByeRequest).

Remarks

A request on a stream is a byte of its version, 1, a byte of this code, then the request as JSON, with its length in four bytes before it.