src/proto2/NetworkConfig.hh
author terom
Sat, 08 Nov 2008 18:02:58 +0000
changeset 21 32c6cc55256a
parent 15 7710cce889b2
child 22 b70d30e1b0fe
permissions -rw-r--r--
change proto2 network code to use CL_NetSession
#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_APP_NAME = "KisnaGlista";
const std::string NETWORK_PORT_STR = "9338";
const uint16_t NETWORK_PACKET_MAX = 1280;

#endif /* NETWORK_CONFIG_HH */