Skip to content

Session Request

Joshua Scott edited this page Sep 21, 2015 · 7 revisions

Details

Starts the connection handshake.

The only packet that can be sent to the server from a new client. Any packets sent before this one are ignored. Replied to with Session Response.

OpCode: 0x01
Compressable: No
Encryptable: No
Append CRC: No

Min-Length: 14 Bytes

Packet Analysis

Details:

Name Type Byte-Order Description
CRC Length uint32 Net The length of the CRC appended to the end of a packet.
Session ID uint32 Net The session ID of the client connection.
Buffer Size uint32 Net The client's buffer size. (always 512 bytes)
Protocol n-string Net The client's protocol name. (CGAPI_527, etc)

Example:

00 01 00 00 00 03 2A 42 D7 8E 00 00 02 00 43 47 41 50 49 5f 35 32 37 00 00 00 00 03

CRC Length: 0x03
Session ID: 0x2A42D78E
Buffer Size: 0x0200
Protocol: CGAPI_527

Clone this wiki locally