ehouse
483858b0fb
rename now() as uptime(); drop NTHREADS to 1 for now; include time of
...
server boot in connName and keep counter in memory rather than a file.
2009-03-10 12:52:17 +00:00
ehouse
cf5a10084e
do loglevel and ports via the general-purpose config mech. No special
...
cases remain.
2009-03-05 13:49:01 +00:00
ehouse
a0cb733125
Add an http interface (read-only web console).
2009-02-28 16:15:59 +00:00
ehouse
1d4c68d8d2
replace int with bool where appropriate; fix to compile with newer g++
2008-12-30 05:13:30 +00:00
ehouse
464252ef55
Don't specify g++ version; add some consts to fix warnings with newer g++.
2008-05-21 03:49:11 +00:00
ehouse
86fa3159d6
Don't use uninitialized values as port numbers; use match for set as well as get.
2007-12-03 00:45:09 +00:00
ehouse
c10a3a7340
Start adding ability to listen on multiple sockets and to dynamically
...
change the set listened on. There's still some debugging to do but
nothing that worked before is broken. Also begin to accept unique
prefixes (e.g. g for get) for commands and attributes on the control
port. Note that relay-related code in comms seems broken now, but is
without this checkin.
2007-12-01 15:00:30 +00:00
ehouse
938a90634f
fix new compiler warnings; daemonize, and add handler to kill child if
...
parent dies so that script can kill based on pid file.
2007-11-13 03:53:10 +00:00
ehouse
f99f718997
Turn on self-spawning: main loop should never crash but exists only to
...
respawn child when it does. Add crash command to test this. Add
ability to set logging level from ctrl port.
2007-11-10 05:41:49 +00:00
ehouse
91c1b1246e
Replace ints with bools; add rev command; fix bug by reiniting args with each
...
command so they don't hold previous values.
2007-02-07 13:22:40 +00:00
ehouse
dcd31cd092
update email address in header comments: no code change
2006-01-08 01:25:02 +00:00
ehouse
bdace2be94
shutdown in response to SIGINT
2005-10-23 15:49:48 +00:00
ehouse
e72740d184
add uptime
2005-10-19 03:39:18 +00:00
ehouse
be6769a937
cleanup ctrl printing; repeat most recent command; cleanup internal names.
2005-10-16 01:19:25 +00:00
ehouse
1ad46f9b33
clean up command help
2005-10-15 16:28:26 +00:00
ehouse
4f8626735a
print prompt
2005-10-14 08:26:56 +00:00
ehouse
bf1264b2ee
rename states so can format to 80 cols; add log level param. No
...
change to functionality in this checkin.
2005-10-02 16:08:42 +00:00
ehouse
e098e6f7b2
make transmitted vars smaller where possible; new relay identifying
...
scheme where cookie is used only to connect, and is replaced for
reconnects by a relay-generated name that's supposed to be unique
across all games on all relays and includes a hostname read in from
config file; relay assign non-servers' hostIDs.
2005-10-01 16:33:45 +00:00
ehouse
1afdfa3732
fix print_cookies to use iterator
2005-09-14 05:14:41 +00:00
ehouse
da323ede86
loads of changes: get settings from config file; remove sockets and
...
kill crefs via state machine, and protect access to a cref so it can
die without another thread being in it; do timers via timeout to
poll() rather than interrupt (and integrate into state machine);
detect when all players are present and change state so new
connections on that cookie will get a new cref.
2005-09-02 06:56:34 +00:00
ehouse
9e572d1743
add several new commands
2005-04-20 11:57:26 +00:00
ehouse
37062d4ab6
mutex replaced by rwlock
2005-04-08 14:17:28 +00:00
ehouse
6baa887b77
add command parsing and dispatch table
2005-03-31 02:20:50 +00:00
ehouse
bf6837a9d0
this file owns thread creation now
2005-03-30 01:52:10 +00:00
ehouse
1ec9e7b851
add cmd to lock/unlock main mutex
2005-03-25 03:24:00 +00:00
ehouse
12b0c74790
first checked in.
2005-03-19 22:16:49 +00:00