src/proto2/NetworkConfig.hh
author terom
Mon, 10 Nov 2008 19:57:57 +0000
branchno-netsession
changeset 33 e53f09b378f4
parent 32 2ff929186c90
child 36 785d220fc6b7
permissions -rw-r--r--
more untested, uncompiled code
#ifndef NETWORK_CONFIG_HH
#define NETWORK_CONFIG_HH

// socket-related includes
// copied from clanlib code, so should be relatively OS-safe
#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

#include <string>

const std::string NETWORK_PORT_STR = "9338";

const size_t NETWORK_PACKET_SIZE = 1280;
const int NETWORK_LISTEN_BACKLOG = 5;

#endif /* NETWORK_CONFIG_HH */