Difference between revisions of "Network Protocol/ROOM"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
{ | { | ||
/*00*/ u8 mode; // record mode: 0|1|2|3|4 | /*00*/ u8 mode; // record mode: 0|1|2|3|4 | ||
− | /*01*/ | + | /*01*/ u16 param1; // parameter 1 |
− | |||
/*03*/ u8 param2; // parameter 2 | /*03*/ u8 param2; // parameter 2 | ||
/*04*/ | /*04*/ |
Revision as of 03:58, 13 June 2020
This pages is related to MKWii Network Protocol and describes the record type ROOM in GNU C notation. The record is only used in private rooms.
typedef struct udp_room_t { /*00*/ u8 mode; // record mode: 0|1|2|3|4 /*01*/ u16 param1; // parameter 1 /*03*/ u8 param2; // parameter 2 /*04*/ // mode == 0x01 : Start an event, send by host // param1: Event type 0..3: GP, TEAM, BATTLE, COIN // param2: * // mode == 0x02 : Register someone as friend // mode == 0x03 : Sending "Here I am" message after joining // mode == 0x04 : Send a room message // param1: message ID // param2: sequence counter (client related) } __attribute__ ((packed)) udp_room_t;