Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-21 19:25:11 +0000
committerStijn Buys <ingar@osirion.org>2008-03-21 19:25:11 +0000
commit2314c27dd650dc02c0b5bdd3bef75818393a9ab5 (patch)
tree231815c866a1330338d976480284250e99207554 /src/core/net.h
parent7e99fac4552b402034e5fc3e833cbe8c274f95ce (diff)
switched to UDP networking
Diffstat (limited to 'src/core/net.h')
-rw-r--r--src/core/net.h30
1 files changed, 30 insertions, 0 deletions
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__
+