src/proto2/NetworkConfig.hh
changeset 15 7710cce889b2
child 21 32c6cc55256a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/proto2/NetworkConfig.hh	Thu Nov 06 22:23:59 2008 +0000
@@ -0,0 +1,20 @@
+#ifndef NETWORK_CONFIG_HH
+#define NETWORK_CONFIG_HH
+
+#ifndef WIN32
+        #include <sys/socket.h>
+        #include <netinet/in.h>
+        #include <arpa/inet.h>
+        #include <netdb.h>
+        #include <sys/time.h>
+        #include <unistd.h> 
+#else
+        #include <winsock2.h>
+        #include <windows.h>
+        typedef int socklen_t;
+#endif
+
+const std::string NETWORK_PORT_STR = "9338";
+const uint16_t NETWORK_PACKET_MAX = 1280;
+
+#endif /* NETWORK_CONFIG_HH */