summaryrefslogtreecommitdiff
path: root/src/net_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net_defs.h')
-rw-r--r--src/net_defs.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/net_defs.h b/src/net_defs.h
index 8478f1f3..13752556 100644
--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: net_defs.h 229 2005-10-30 19:56:15Z fraggle $
+// $Id: net_defs.h 232 2005-12-29 17:48:25Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.2 2005/12/29 17:48:25 fraggle
+// Add initial client/server connect code. Reorganise sources list in
+// Makefile.am.
+//
// Revision 1.1 2005/10/30 19:56:15 fraggle
// Add foundation code for the new networking system
//
@@ -89,5 +93,19 @@ struct _net_addr_s
void *handle;
};
+// magic number sent when connecting to check this is a valid client
+
+#define NET_MAGIC_NUMBER 3436803284U
+
+// packet types
+
+typedef enum
+{
+ NET_PACKET_TYPE_SYN,
+ NET_PACKET_TYPE_ACK,
+ NET_PACKET_TYPE_GAMESTART,
+ NET_PACKET_TYPE_GAMEDATA,
+} net_packet_type_t;
+
#endif /* #ifndef NET_DEFS_H */