aboutsummaryrefslogtreecommitdiff
path: root/src/libparsec/include/net_pckt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libparsec/include/net_pckt.h')
-rw-r--r--src/libparsec/include/net_pckt.h38
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_
+
+