src/Network/Config.hh
branchnew_graphics
changeset 417 c503e0c6a740
parent 416 38cba347a3a9
child 418 194bc810a570
equal deleted inserted replaced
416:38cba347a3a9 417:c503e0c6a740
     1 #ifndef NETWORK_CONFIG_HH
       
     2 #define NETWORK_CONFIG_HH
       
     3 
       
     4 /**
       
     5  * @file
       
     6  *
       
     7  * Network-related configuration
       
     8  */
       
     9 
       
    10 #include <string>
       
    11 
       
    12 /** Default port used for network games */
       
    13 const std::string NETWORK_PORT_STR = "9338";
       
    14 
       
    15 /** Maximum packet size used for normal NetworkPackets... aligned to a sensible UDP mtu */
       
    16 const size_t NETWORK_PACKET_SIZE = 1280;
       
    17 
       
    18 /** Backlog used for TCP server... doesn't really matter all that much */
       
    19 const int NETWORK_LISTEN_BACKLOG = 5;
       
    20 
       
    21 /** Magic string used to identify game between client/server */
       
    22 const char NETWORK_MAGIC_STR[8+1] = "KISNGLIS";
       
    23 const uint64_t NETWORK_MAGIC_ID = * ((const uint64_t *) NETWORK_MAGIC_STR);
       
    24 
       
    25 #endif /* NETWORK_CONFIG_HH */