diff options
Diffstat (limited to 'src/engine/protocol.h')
| -rw-r--r-- | src/engine/protocol.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/engine/protocol.h b/src/engine/protocol.h new file mode 100644 index 00000000..81c0480c --- /dev/null +++ b/src/engine/protocol.h @@ -0,0 +1,34 @@ +#include "system.h" + +enum +{ + NETMSG_NULL=0, + + /* the first thing sent by the client + contains the version info for the client */ + NETMSG_INFO=1, + + /* sent by server */ + NETMSG_MAP, + NETMSG_SNAP, + NETMSG_SNAPEMPTY, + NETMSG_SNAPSMALL, + + /* sent by client */ + NETMSG_ENTERGAME, + NETMSG_INPUT, + NETMSG_SNAPACK, + + /* sent by both */ + NETMSG_ERROR, +}; + + +/* this should be revised */ +enum +{ + MAX_NAME_LENGTH=32, + MAX_CLANNAME_LENGTH=32, + MAX_INPUT_SIZE=128, + MAX_SNAPSHOT_PACKSIZE=1200 +}; |