2005-09-02 08:40:34 +02:00
|
|
|
# -*- mode: Makefile; -*-
|
|
|
|
# Comments start with #, which must be in first column
|
|
|
|
#
|
|
|
|
# Format: var=value. No spaces between var and value at this point.
|
|
|
|
|
|
|
|
# Heartbeat timer. Sent to clients.
|
2005-10-02 17:39:38 +02:00
|
|
|
HEARTBEAT=60
|
2005-09-02 08:40:34 +02:00
|
|
|
|
|
|
|
# How long after the first connection on a cookie until we need to
|
|
|
|
# have heard from all players in the game? After this long passes we
|
|
|
|
# kill the connection after notifying all that have connected.
|
2009-12-27 19:17:24 +01:00
|
|
|
# Default -- if not set -- is an infinite timeout.
|
|
|
|
# ALLCONN=300
|
2005-09-02 08:40:34 +02:00
|
|
|
|
2011-01-20 03:36:50 +01:00
|
|
|
# How many worker threads in the thread pool? Default is five. Let's
|
|
|
|
# keep this at 1 until the race condition is fixed. All interaction
|
|
|
|
# with crefs should be from this one thread, including proxy stuff.
|
2011-06-26 06:32:18 +02:00
|
|
|
NTHREADS=5
|
2005-09-02 08:40:34 +02:00
|
|
|
|
2010-09-15 06:20:11 +02:00
|
|
|
# How many seconds to wait for device to ack new connName
|
|
|
|
DEVACK=3
|
|
|
|
|
2010-08-12 15:42:33 +02:00
|
|
|
# What ports do we listen on for per-game incoming connections?
|
2010-09-29 16:37:26 +02:00
|
|
|
GAME_PORTS=10997
|
2009-11-22 17:29:23 +01:00
|
|
|
#PORTS=10997,10998,10999
|
2010-08-12 15:42:33 +02:00
|
|
|
# What ports do we listen on for per-device incoming connections?
|
|
|
|
DEVICE_PORTS=10998
|
2005-09-02 08:40:34 +02:00
|
|
|
|
2011-04-01 03:13:16 +02:00
|
|
|
# default 5
|
|
|
|
SOCK_TIMEOUT_SECONDS=5
|
2011-03-12 14:13:54 +01:00
|
|
|
|
2005-09-02 08:40:34 +02:00
|
|
|
# And the control port is?
|
|
|
|
CTLPORT=11000
|
|
|
|
|
2009-02-28 17:15:59 +01:00
|
|
|
# port for web interface
|
2009-03-05 14:49:01 +01:00
|
|
|
WWW_PORT=11001
|
2009-03-02 02:50:14 +01:00
|
|
|
#--- INADDR_ANY: 0x00000000
|
|
|
|
#WWW_LISTEN_ADDR=0
|
|
|
|
#--- INADDR_LOOPBACK: 0x7f000001/2130706433
|
|
|
|
WWW_LISTEN_ADDR=2130706433
|
2009-08-21 14:32:57 +02:00
|
|
|
# web data is cached; refresh when needed but only this often
|
|
|
|
WWW_SAMPLE_INTERVAL=5
|
|
|
|
# web pages set to refresh this often
|
2009-03-02 06:29:06 +01:00
|
|
|
WWW_REFRESH_SECS=30
|
2009-07-30 14:52:05 +02:00
|
|
|
WWW_CSS_PATH=./xwrelay.css
|
2009-02-28 17:15:59 +01:00
|
|
|
|
2005-10-01 18:33:45 +02:00
|
|
|
# Need a unique name for every instance of the relay so they can
|
|
|
|
# create game ids guaranteed to be unique
|
2005-10-23 23:06:07 +02:00
|
|
|
SERVERNAME=eehouse.org
|
|
|
|
|
2011-06-26 06:32:18 +02:00
|
|
|
# name of the database. (Table names are hard-coded.)
|
|
|
|
DB_NAME=xwgames
|
|
|
|
|
2007-11-10 06:41:49 +01:00
|
|
|
# Initial level of logging. See xwrelay_priv.h for values. Currently
|
|
|
|
# 0 means errors only, 1 info, 2 verbose and 3 very verbose.
|
2009-07-30 14:52:05 +02:00
|
|
|
LOGLEVEL=0
|
2009-07-31 15:02:05 +02:00
|
|
|
LOGFILE_PATH=./xwrelay.log
|
2010-03-28 18:09:07 +02:00
|
|
|
|
|
|
|
# Delay sending packets so devices/emulators on the same machine as
|
|
|
|
# relay have a bit more natural experience
|
|
|
|
# SEND_DELAY_MILLIS=500
|