src/Network/Config.hh
author Tero Marttila <terom@fixme.fi>
Fri, 16 Jan 2009 22:03:49 +0200
changeset 400 d64bf28c4340
parent 186 0738f2949a2b
permissions -rw-r--r--
more documentation tweaking, all Network/ files now have a @file comment. Fix Platform.h -> Platform.hh, and Buffer.hh + Packet.cc
#ifndef NETWORK_CONFIG_HH
#define NETWORK_CONFIG_HH

/**
 * @file
 *
 * Network-related configuration
 */

#include <string>

/** Default port used for network games */
const std::string NETWORK_PORT_STR = "9338";

/** Maximum packet size used for normal NetworkPackets... aligned to a sensible UDP mtu */
const size_t NETWORK_PACKET_SIZE = 1280;

/** Backlog used for TCP server... doesn't really matter all that much */
const int NETWORK_LISTEN_BACKLOG = 5;

/** Magic string used to identify game between client/server */
const char NETWORK_MAGIC_STR[8+1] = "KISNGLIS";
const uint64_t NETWORK_MAGIC_ID = * ((const uint64_t *) NETWORK_MAGIC_STR);

#endif /* NETWORK_CONFIG_HH */