src/proto2/Network.hh
changeset 5 617813994ab1
child 8 2de58a6d0395
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/proto2/Network.hh	Mon Nov 03 22:59:50 2008 +0000
@@ -0,0 +1,26 @@
+#ifndef NETWORK_HH
+#define NETWORK_HH
+
+#include <ClanLib/Network/socket.h>
+
+#define NETWORK_PORT_STR "9338"
+#define NETWORK_PACKET_MAX 1280
+
+class NetworkBase {
+	protected:
+		CL_Socket socket;
+
+		NetworkBase () : 
+				socket(CL_Socket::udp)
+		{
+				socket.set_nonblocking(true);
+		}
+
+		NetworkBase (CL_Socket socket) :
+				socket(socket)
+		{
+				socket.set_nonblocking(true);
+		}
+};
+
+#endif