terom@185: #ifndef NETWORK_CONFIG_HH terom@185: #define NETWORK_CONFIG_HH terom@185: terom@400: /** terom@400: * @file terom@400: * terom@400: * Network-related configuration terom@400: */ terom@185: terom@185: #include terom@185: terom@400: /** Default port used for network games */ terom@185: const std::string NETWORK_PORT_STR = "9338"; terom@185: terom@400: /** Maximum packet size used for normal NetworkPackets... aligned to a sensible UDP mtu */ terom@185: const size_t NETWORK_PACKET_SIZE = 1280; terom@400: terom@400: /** Backlog used for TCP server... doesn't really matter all that much */ terom@185: const int NETWORK_LISTEN_BACKLOG = 5; terom@185: terom@400: /** Magic string used to identify game between client/server */ terom@185: const char NETWORK_MAGIC_STR[8+1] = "KISNGLIS"; terom@185: const uint64_t NETWORK_MAGIC_ID = * ((const uint64_t *) NETWORK_MAGIC_STR); terom@185: terom@185: #endif /* NETWORK_CONFIG_HH */