… | |
… | |
88 | int len; |
88 | int len; |
89 | }; |
89 | }; |
90 | |
90 | |
91 | // a handler for a specific type of packet |
91 | // a handler for a specific type of packet |
92 | enum { |
92 | enum { |
93 | PF_PLAYER = 0x01, // must have valid player |
93 | PF_PLAYER = 0x01, // must have valid player / will by synchronised |
94 | PF_IMMEDIATE = 0x02, // TODO: hack, can be executed immediately |
|
|
95 | PF_PLAYING = 0x04, // must be in playing state |
94 | PF_PLAYING = 0x02, // must be in playing state |
96 | }; |
95 | }; |
97 | |
96 | |
98 | struct packet_type |
97 | struct packet_type |
99 | { |
98 | { |
100 | const char *name; |
99 | const char *name; |