blob: ec2efff6aad460284ec136579964a36fbfc7993b (
plain)
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
|
/*
* PARSEC HEADER: net_pckt.h
*/
#ifndef _NET_PCKT_H_
#define _NET_PCKT_H_
// net_pckt.c implements the following functions
// ---------------------------------------------
// external functions ---------------------------------------------------------
//
// protocol type --------------------------------------------------------------
//
#define PROTOCOL_PEER2PEER 0x0100
#define PROTOCOL_GAMESERVER 0x0200
#define PROTOCOL_ENCRYPTED 0xF000
// protocol type signature ----------------------------------------------------
//
extern const char net_game_signature[];
extern const char net_cryp_signature[];
extern const char net_packet_signature_gameserver[];
extern const char net_packet_signature_peer2peer[];
// signature lengths ----------------------------------------------------------
//
#define SIGNATRUE_LEN_OLD PACKET_SIGNATURE_SIZE
#define SIGNATURE_LEN_GAMESERVER 3
#define SIGNATURE_LEN_PEER2PEER 3
#endif // _NET_PCKT_H_
|