From 2314c27dd650dc02c0b5bdd3bef75818393a9ab5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 21 Mar 2008 19:25:11 +0000 Subject: switched to UDP networking --- src/core/net.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/core/net.h (limited to 'src/core/net.h') diff --git a/src/core/net.h b/src/core/net.h new file mode 100644 index 0000000..dd81580 --- /dev/null +++ b/src/core/net.h @@ -0,0 +1,30 @@ +/* + core/net.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_CORE_NET_H__ +#define __INCLUDED_CORE_NET_H__ + +/// this namespace contains the network subsystem +namespace core +{ + +/// maximum lenght of a (compressed) network message block +const unsigned int FRAMESIZE = 1152; +const unsigned int BLOCKSIZE = 8192; + +/// maximum number of pending client connections, hard limit +const unsigned int MAXPENDINGCONNECTIONS = 32; + +/// default network port +const unsigned int DEFAULTPORT = 8042; +} + +#include "core/netserver.h" +#include "core/netclient.h" +#include "core/netconnection.h" + +#endif // __INCLUDED_CORE_NET_H__ + -- cgit v1.2.3