Eric House
49b04257d3
tweak date format
2012-03-01 18:16:04 -08:00
Eric House
840385b3ad
print dates in shorter format so columns don't wrap as frequently
2012-02-27 18:28:04 -08:00
Eric House
e7a5882ed9
add a state transition lack of which fired an assert -- and that's
...
rare but consistent with others.
2012-02-15 18:17:26 -08:00
Eric House
bf5b6ada77
include public-room column
2012-02-07 18:59:17 -08:00
Eric House
edaef7f0a4
add new column
2012-01-26 23:02:56 -08:00
Eric House
adf49dffd7
init/take down thread local storage in constructor/destructor rather
...
than as static initializer (and then leaking on shutdown.)
2012-01-26 05:48:10 -08:00
Eric House
866aeb2387
change relay connect message format to include client version (meaning
...
of which is TBD). When a new-version client connects, store the value
it's passed. At first this will let me track how quickly people
upgrade. Later I can use it to let different clients have different
formats to their messages e.g. to proxy.
2012-01-26 05:43:54 -08:00
Eric House
960dfc7825
draw alternating game lines in alternating colors
2012-01-16 12:13:35 -08:00
Eric House
edd1dd95dd
Merge remote branch 'origin/android_branch' into android_branch
2012-01-13 07:54:40 -08:00
Eric House
546ec8a3f4
get non-printing column out of cols array to be treated separately.
2012-01-13 07:54:11 -08:00
Eric House
2902b38405
Merge remote-tracking branch 'origin/android_branch' into android_branch
...
Conflicts:
xwords4/relay/scripts/showgames.php
2012-01-13 07:50:53 -08:00
Eric House
ca49078730
improve to print each game as multiple rows, one per device.
2012-01-12 19:17:38 -08:00
Eric House
8c52836f9d
php file to display state of relay's DB. This is the first and rough cut.
2012-01-12 06:30:30 -08:00
Eric House
7de8a90df3
silence compiler warning.
2012-01-11 18:29:14 -08:00
Eric House
37b333001b
outline of php script to print contents of games DB
2012-01-05 20:25:34 -08:00
Eric House
caa40fa023
store most recent IP address each device has come in on. Requires new
...
column in db. Not really used yet but interesting to watch....
2012-01-04 18:14:12 -08:00
Eric House
03e6db5107
remove logging
2012-01-03 18:27:25 -08:00
Eric House
cb04eb8840
finally got the socket leak: use keepalive ioctl to detect sockets
...
whose other ends have gone down without closing properly.
2011-12-21 18:18:30 -08:00
Eric House
166d8f8c03
log number of sockets tracked -- it's climbing on server and I need to
...
figure out why. This and listening for POLLRDHUP are a start (but not
sufficient).
2011-12-15 18:41:07 -08:00
eehouse@eehouse.org
b2a3c444f3
Merge branch 'android_branch' into send_in_background
2011-12-07 19:09:36 -08:00
Andy2
0d4e839dba
log an error and drop bad fwd packet rather than assert
2011-12-07 18:43:13 -08:00
Eric House
6cc3770cd1
script to trace history of one game in db by polling db and listing
...
changes
2011-12-07 18:37:28 -08:00
Andy2
17edc79aaf
Merge branch 'android_branch' into send_in_background
...
Conflicts:
xwords4/android/XWords4/src/org/eehouse/android/xw4/XWApp.java
2011-12-06 19:56:10 -08:00
Eric House
7015ae500b
exit after showing usage
2011-12-06 18:50:04 -08:00
Eric House
dc42e63974
fix read_packet() logging
2011-12-02 18:55:47 -08:00
Eric House
b706486b6e
get rid of stringstream: it's either buggy or I'm using it
...
incorrectly, but regardless postgres doesn't like random chars
terminating queries.
2011-12-02 18:32:37 -08:00
Eric House
3f5e62c9b7
remove logging
2011-12-02 18:31:05 -08:00
Eric House
c1e420f726
Merge branch 'android_branch' into send_in_background
...
Conflicts:
xwords4/relay/rq.c
2011-11-29 06:45:32 -08:00
Eric House
ba5ff6cb5d
fix too-small buffer. Seems I've done this before.
2011-11-28 20:35:34 -08:00
Eric House
e5a943eecb
tweak output
2011-11-28 18:15:09 -08:00
Eric House
f20f9d6503
complain if conf file not found (rather than leaving relay to crash
...
with an assert whose cause may not be obvious)
2011-11-28 18:14:39 -08:00
Eric House
72a3ed1891
increase buffer size: longer relay name caused stack overwrite
...
failures.
2011-11-21 17:33:44 -08:00
Eric House
cd699ba547
close socket when done
2011-11-17 19:56:54 -08:00
Andy2
da5da3dd89
wait for connection rather than asserting immediate success so can be
...
started before server.
2011-10-07 18:50:37 -07:00
Andy2
28e5c39845
get rid of stringstream where it wasn't working (maybe because of user
...
error -- whatever); fix error check to avoid false conclusion that
query didn't work so that update of num bytes sent in background works.
2011-09-30 18:20:28 -07:00
Andy2
d9e97d2f32
reduce logging
2011-09-30 18:10:22 -07:00
Andy2
6553546642
cleanup; add logging for debugging background packets stuff.
2011-09-30 06:36:56 -07:00
Andy2
cb6a16f8f8
add ability to connect on nbs socket and use as destination for
...
messages fetched from relay, and to receive replies on same socket for
forwarding to relay.
2011-09-30 06:34:09 -07:00
Andy2
58be931558
remove messages after sending them if they appear to have been sent
...
successfully.
2011-08-17 19:52:55 -07:00
Andy2
2c26fc03e3
Track messages sent via proxy and credit nsent (accumulator) if
...
successful. Previously messages sent via proxy were not counted.
2011-08-17 18:09:10 -07:00
Andy2
b511b4c455
add new RecordSent to take list of msg ids -- and use stringstream
...
instead of static buffer and snprintf in one case. May make sense
elsewhere too.
2011-08-17 18:07:21 -07:00
Andy2
30145deba7
add new proxy message handler for no-conn message, and feed into
...
existing store-and-forward system. With this checkin a robot-vs-robot
game plays for quite a few moves without either game every loaded into
the foreground (via a BoardActivity instance on Android), with all
moves transmitted as a result of relay checks. One of the games
refuses to open later, however, and there are certainly other bugs.
And I'm not sure what happens when a message sent no-conn (without a
cookie ID) is received in the foreground. But this is progress.
2011-08-16 19:41:33 -07:00
Andy2
dc273c7162
fix proxy msg handling to process more than one relayID per message.
...
Formerly all but the first were dropped.
2011-08-15 18:27:00 -07:00
Eric House
421e2a4ae3
fix uninitialized variable
2011-07-08 05:53:08 -07:00
eehouse@eehouse.org
ba4d898de1
Merge branch 'android_invite' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_invite
2011-07-06 19:12:16 -07:00
Andy2
86e3cc7286
When device reconnects to a dead game, just deny the connection with a
...
new error message rather than allow it as if it were a normal game
only to send a game-dead message after. This solves the problem of
how device knows not to put up welcoming message or suggestion to
invite to a game that's suddenly missing players. BUT: this change is
incompatible with existing versions and so needs to get pushed out
before the in-use relay can be upgraded to include this code.
2011-07-06 06:47:25 -07:00
Andy2
928404be50
remove unused enum
2011-07-06 06:15:25 -07:00
Eric House
a3dbde9b88
more dealing with edge cases.
2011-07-05 21:42:03 -07:00
Eric House
98a65d82ed
fix crash in rare edge case
2011-07-05 21:40:13 -07:00
Eric House
d3108aac79
split method in two to provide new API (I'm not using yet)
2011-07-05 21:39:38 -07:00