1 /*
2  * qstat
3  * by Steve Jankowski
4  *
5  * Doom3 / Quake4 protocol
6  * Copyright 2005 Ludwig Nussel
7  *
8  * Licensed under the Artistic License, see LICENSE.txt for license terms
9  */
10 #ifndef QSTAT_DOOM3_H
11 #define QSTAT_DOOM3_H
12 
13 #define DOOM3_DEFAULT_PORT		27666
14 #define DOOM3_MASTER_DEFAULT_PORT	27650
15 
16 #define QUAKE4_DEFAULT_PORT		28004
17 #define QUAKE4_MASTER_DEFAULT_PORT	27650
18 
19 #define PREY_DEFAULT_PORT		27719
20 #define PREY_MASTER_DEFAULT_PORT	27655
21 
22 #define ETQW_DEFAULT_PORT		27733
23 
24 #define WOLF_DEFAULT_PORT		27758
25 
26 query_status_t send_doom3master_request_packet(struct qserver *server);
27 query_status_t deal_with_doom3master_packet(struct qserver *server, char *rawpkt, int pktlen);
28 
29 query_status_t deal_with_doom3_packet(struct qserver *server, char *rawpkt, int pktlen);
30 
31 query_status_t send_quake4master_request_packet(struct qserver *server);
32 query_status_t deal_with_quake4_packet(struct qserver *server, char *rawpkt, int pktlen);
33 
34 query_status_t deal_with_prey_packet(struct qserver *server, char *rawpkt, int pktlen);
35 
36 query_status_t deal_with_etqw_packet(struct qserver *server, char *rawpkt, int pktlen);
37 
38 query_status_t deal_with_wolf_packet(struct qserver *server, char *rawpkt, int pktlen);
39 
40 #endif
41