Enum RequestCode
Specifies the kind of a client's request.
public enum RequestCode : byte
Fields
Hello = 1A request for a session (HelloRequest).
TcpPacketChannel = 2A stream that carries the session's packets (TcpPacketChannelRequest).
TcpForwardingChannel = 3A stream that carries one forwarded TCP connection (TcpForwardingChannelRequest).
SessionStatus = 4The session's status (SessionStatusRequest).
UdpPacket = 5UDP packets in a request of their own (UdpPacketRequest), which no client sends and the server does not serve.
RewardedAd = 10A rewarded ad the person has watched (RewardedAdRequest).
ServerCheck = 30A check that the server is there (ServerCheckRequest).
Bye = 50The 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.