From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- src/libparsec/include/net_pckt.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/libparsec/include/net_pckt.h (limited to 'src/libparsec/include/net_pckt.h') 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_ + + -- cgit v1.2.3