1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef foomcprotocolhfoo #define foomcprotocolhfoo int mc_is_handshake_complete(const char *buf, size_t len); bool mc_protocol_parse_status_reply(const char *buf, size_t len, unsigned *online, unsigned *max); bool mc_protocol_create_status_request(char *buf, size_t len, size_t *rlen, struct saddr *saddr); #endif