package
1.3.0
Repository: https://github.com/go-zoox/packet.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

GenerateID generates a connection id.
.

# Constants

CommandAuthenticate client <-> server.
CommandBind client <-> server.
CommandClose client <-> client.
CommandForward client <-> client.
CommandHandshakeRequest client <-server-> client.
CommandHandshakeResponse client <-server-> client.
CommandJoinAsAgent client <-> server.
LengthATyp ...
LengthCmd ...
LengthCompression ...
LengthConnectionID ...
LengthCrypto ...
LengthDSTPort ...
LengthJoinAsRoomType is the byte length of join as room type.
LengthNetwork ...
LengthNonce is the byte length of NONCE.
LengthSignature is the byte length of SIGNATURE.
LengthStatus is the byte length of STATUS.
// LengthTargetUserClientID ..
LengthUserClientID is the byte length of USER_CLIENT_ID LengthUserClientID = 10 // dynamic LengthTimestamp is the byte length of TIMESTAMP.
LengthUserClientIDLength is the length of USER_CLIENT_ID_LENGTH.
LengthVer ...
StatusFailedToHandshake means failed to handshake.
StatusFailedToPair means failed to pair with signature.
StatusInvalidSignature means invalid signature.
StatusInvalidUserClientID means invalid user client id.
StatusOK means status ok.
StatusUserNotOnline means user is not online.
VER ...