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