FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
70
struct
crc_valid_status
{
71
char
name
[
NAME_LENGTH
];
72
uint
crc32
;
73
ubyte
valid
;
74
};
75
76
struct
file_record
77
{
78
char
name
[33];
79
uint
crc32
;
80
};
81
82
struct
fs2open_ship_typekill
83
{
84
char
name
[
NAME_LENGTH
];
85
ushort
kills
;
86
};
87
88
89
#endif
crc_valid_status::crc32
uint crc32
Definition:
protocol.h:72
crc_valid_status::valid
ubyte valid
Definition:
protocol.h:73
crc_valid_status
Definition:
protocol.h:70
fs2open_ship_typekill::kills
ushort kills
Definition:
protocol.h:85
pstypes.h
globals.h
uint
unsigned int uint
Definition:
pstypes.h:64
file_record::crc32
uint crc32
Definition:
protocol.h:79
ubyte
unsigned char ubyte
Definition:
pstypes.h:62
name
GLuint const GLchar * name
Definition:
Glext.h:5608
NAME_LENGTH
#define NAME_LENGTH
Definition:
globals.h:15
ushort
unsigned short ushort
Definition:
pstypes.h:63
file_record
Definition:
protocol.h:76
fs2open_ship_typekill
Definition:
protocol.h:82
code
fs2netd
protocol.h
Generated on Sun May 1 2016 16:22:25 for FS2_Open by
1.8.10