terom@15: #ifndef NETWORK_CONFIG_HH terom@15: #define NETWORK_CONFIG_HH terom@15: terom@21: // socket-related includes terom@21: // copied from clanlib code, so should be relatively OS-safe terom@15: #ifndef WIN32 terom@15: #include terom@15: #include terom@15: #include terom@15: #include terom@15: #include terom@15: #include terom@15: #else terom@15: #include terom@15: #include terom@15: typedef int socklen_t; terom@15: #endif terom@15: terom@21: #include terom@21: terom@15: const std::string NETWORK_PORT_STR = "9338"; terom@22: terom@89: const size_t NETWORK_PACKET_SIZE = 1280; terom@89: const int NETWORK_LISTEN_BACKLOG = 5; terom@89: terom@89: const char NETWORK_MAGIC_STR[8+1] = "KISNGLIS"; terom@89: const uint64_t NETWORK_MAGIC_ID = * ((const uint64_t *) NETWORK_MAGIC_STR); terom@15: terom@15: #endif /* NETWORK_CONFIG_HH */