FS2_Open
Open source remastering of the Freespace 2 engine
protocol.h
Go to the documentation of this file.
1 // Protocol.h
2 // Protocol Definitions for FS2Open PXO
3 // Derek Meek
4 // 2-14-2003
5 
6 // ############## ATTENTION ##########
7 // Licensed under the Academic Free License version 2.0
8 // View License at http://www.opensource.org/licenses/afl-2.0.php
9 // ###################################
10 
11 
12 
13 #if !defined(__pxo_protocol_h_)
14 #define __pxo_protocol_h_
15 
16 
17 #include "globalincs/globals.h"
18 #include "globalincs/pstypes.h"
19 
20 
21 #define PXO_PROTO_VER "2.0"
22 
23 
24 // Packet IDs
25 #define PCKT_ID_FIRST 0x00
26 
27 #define PCKT_SLIST_REQUEST 0x01
28 #define PCKT_SLIST_REPLY 0x02
29 #define PCKT_SLIST_HB 0x03
30 #define PCKT_LOGIN_AUTH 0x04
31 #define PCKT_LOGIN_REPLY 0x05
32 #define PCKT_MISSIONS_RQST 0x06
33 #define PCKT_MISSIONS_REPLY 0x07
34 #define PCKT_TABLES_RQST 0x08
35 #define PCKT_TABLES_REPLY 0x09
36 #define PCKT_PILOT_GET 0x0a
37 #define PCKT_PILOT_REPLY 0x0b
38 #define PCKT_PILOT_UPDATE 0x0c
39 #define PCKT_PILOT_UREPLY 0x0d
40 #define PCKT_PING 0x0e
41 #define PCKT_PONG 0x0f
42 
43 #define PCKT_MISSION_CHECK 0x10
44 #define PCKT_MCHECK_REPLY 0x11
45 #define PCKT_BANLIST_RQST 0x12
46 #define PCKT_BANLIST_RPLY 0x13
47 #define PCKT_NETOWRK_WALL 0x14
48 #define PCKT_VALID_SID_RQST 0x15
49 #define PCKT_VALID_SID_REPLY 0x16
50 #define PCKT_CHAT_CHANNEL_UPD 0x17
51 #define PCKT_CHAT_CHAN_COUNT_RQST 0x18
52 #define PCKT_CHAT_CHAN_COUNT_REPLY 0x19
53 #define PCKT_SLIST_HB_2 0x1a
54 #define PCKT_SERVER_DISCONNECT 0x1b
55 #define PCKT_DUP_LOGIN_RQST 0x1c
56 #define PCKT_DUP_LOGIN_REPLY 0x1d
57 #define PCKT_SLIST_REQUEST_FILTER 0x1e
58 #define PCKT_SERVER_START 0x1f
59 
60 #define PCKT_SERVER_UPDATE 0x20
61 
62 #define PCKT_ID_LAST 0x21
63 
64 #define PCKT_INVALID 0xff
65 
66 #define VALID_PACKET_ID(p) (((p) > PCKT_ID_FIRST) && ((p) < PCKT_ID_LAST))
67 
68 
69 
74 };
75 
77 {
78  char name[33];
80 };
81 
83 {
86 };
87 
88 
89 #endif
unsigned int uint
Definition: pstypes.h:64
uint crc32
Definition: protocol.h:79
unsigned char ubyte
Definition: pstypes.h:62
GLuint const GLchar * name
Definition: Glext.h:5608
#define NAME_LENGTH
Definition: globals.h:15
unsigned short ushort
Definition: pstypes.h:63