Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* MSG_REGISTRATION_REQUEST */
- struct registrationRequest {
- /* Type + Length */
- BASE_STRUCT
- /* IP Address */
- uint32_t ipAddress;
- /* Port */
- uint16_t port;
- /* Strengths Own << 4 || Peer */
- uint16_t strengths;
- /* Name Length */
- uint16_t nameLength;
- /* Password Length */
- uint16_t passwordLength;
- /* Name */
- char ownName[1];
- /* Password */
- char password[1];
- };
- /* MSG_REGISTRATION_ACK */
- struct registrationAck {
- /* Type + Length */
- BASE_STRUCT
- };
- /* MSG_PEER_INFO */
- struct peerInfo {
- /* Type + Length */
- BASE_STRUCT
- /* IP Address */
- uint32_t ipAddress;
- /* Port */
- uint16_t port;
- /* Start */
- uint16_t start;
- /* Opponent Name */
- char oppName[1];
- };
- /* MSG_PEER_INFO_ACK */
- struct peerInfoAck {
- /* Type + Length */
- BASE_STRUCT
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement