diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /src/libparsec/include/net_pckt.h | |
| download | openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.tar.xz openparsec-c068f22329d5cc722622a2183bbb22eef2093df7.zip | |
Diffstat (limited to 'src/libparsec/include/net_pckt.h')
| -rw-r--r-- | src/libparsec/include/net_pckt.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/libparsec/include/net_pckt.h b/src/libparsec/include/net_pckt.h new file mode 100644 index 0000000..ec2efff --- /dev/null +++ b/src/libparsec/include/net_pckt.h @@ -0,0 +1,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_ + + |
