mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
82 lines
2.5 KiB
Makefile
82 lines
2.5 KiB
Makefile
# -*- 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.
|
|
HEARTBEAT=60
|
|
|
|
# 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.
|
|
# Default -- if not set -- is an infinite timeout.
|
|
# ALLCONN=300
|
|
|
|
# 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.
|
|
NTHREADS=1
|
|
|
|
# How many seconds to wait for device to ack new connName
|
|
DEVACK=3
|
|
|
|
# What ports do we listen on for per-game incoming connections?
|
|
GAME_PORTS=10997
|
|
#PORTS=10997,10998,10999
|
|
# What ports do we listen on for per-device incoming connections?
|
|
DEVICE_PORTS=10998
|
|
|
|
# Port for per-device UDP interface (experimental)
|
|
UDP_PORT=10997
|
|
# interface to listen on -- may get dup packets if not specified
|
|
UDP_IFACE=eth0
|
|
|
|
# How long after we've read from an address before we assume it's
|
|
# recycled. Also sent to clients as a suggested ping interval
|
|
UDP_RECYLE_INTERVAL=60
|
|
# consider a packet non-received after how many seconds
|
|
UDP_ACK_LIMIT=60
|
|
|
|
# default 5
|
|
SOCK_TIMEOUT_SECONDS=5
|
|
# How many tcp sockets at once (to prevent leaks). default: 100
|
|
MAXSOCKS=256
|
|
|
|
# And the control port is?
|
|
CTLPORT=11000
|
|
|
|
|
|
# port for web interface
|
|
WWW_PORT=11001
|
|
#--- INADDR_ANY: 0x00000000
|
|
#WWW_LISTEN_ADDR=0
|
|
#--- INADDR_LOOPBACK: 0x7f000001/2130706433
|
|
WWW_LISTEN_ADDR=2130706433
|
|
# web data is cached; refresh when needed but only this often
|
|
WWW_SAMPLE_INTERVAL=5
|
|
# web pages set to refresh this often
|
|
WWW_REFRESH_SECS=30
|
|
WWW_CSS_PATH=./xwrelay.css
|
|
|
|
# Need a unique name for every instance of the relay so they can
|
|
# create game ids guaranteed to be unique
|
|
SERVERNAME=eehouse.org
|
|
|
|
# name of the database. (Table names are hard-coded.)
|
|
DB_NAME=xwgames
|
|
# UDP port postgres server is listening on
|
|
DB_PORT=5432
|
|
|
|
# Initial level of logging. See xwrelay_priv.h for values. Currently
|
|
# 0 means errors only, 1 info, 2 verbose and 3 very verbose.
|
|
LOGLEVEL=0
|
|
LOGFILE_PATH=./xwrelay.log
|
|
|
|
# Delay sending packets so devices/emulators on the same machine as
|
|
# relay have a bit more natural experience
|
|
# SEND_DELAY_MILLIS=500
|
|
|
|
# Use base64 encoding rather than PQescapeByteaConn for stored
|
|
# messages. The latter doesn't seem as reliable with newer psql
|
|
# servers. Anything but 0 is treated as true.
|
|
USE_B64=1
|