Network Protocol/ROOM
< Network Protocol
Jump to navigation
Jump to search
Revision as of 05:56, 9 June 2013 by Leseratte (talk | contribs) (Leseratte moved page MKWii Network Protocol/PREFIX to MKWii Network Protocol/ROOM: PREFIX in ROOM umbenannt.)
This pages is related to MKWii Network Protocol and describes the record type ROOM in GNU C notation.
typedef struct udp_prefix_t { /*00*/ u16 unknown_00; // always 0x1000 /*02*/ u16 unknown_02; // always 0x0004 /*04*/ u16 unknown_04; // nearly always 0x00c0, rarely 0x0000 /*06*/ u16 unknown_06; // always 0x0000 /*08*/ u8 mode; // record mode: 0|1|2|3|4 /*09*/ u8 unknown_09; // always 0x00 /*0a*/ u8 param1; // parameter 1 /*0b*/ u8 param2; // parameter 2 /*0c*/ // mode == 0x01 : Start an event, send by host // param1: Event type 0..3: GP, TEAM, BATTLE, COIN // param2: * // mode == 0x04 : Send a room message // param1: message ID // param2: sequence counter (client related) } __attribute__ ((packed)) udp_prefix_t;