Eric House
2c339ed7a5
fix to work with new devid/table scheme
2012-11-06 07:25:38 -08:00
Eric House
9ad28908bb
assert enum within range
2012-11-06 07:07:14 -08:00
Eric House
03108f311a
Merge branch 'android_branch' into android_gcm
2012-11-05 06:14:21 -08:00
Eric House
59937b8514
modify how devids are handled on the relay and the protocol through
...
which they're communicated to the device. Device is expected to have
a platform-specific notion of ID which the relay stores in a new
devices table and indexes with a 32-bit number which is returned to
the device -- which is encouraged but not required to use it in lieu
of the longer ID in future communications. Modify linux client and
test script to use the relay-supplied id. Some of this is commented
out for now.
2012-11-03 10:58:01 -07:00
Eric House
fe819982da
Merge remote-tracking branch 'origin/android_branch' into android_gcm
2012-10-31 07:44:16 -07:00
Eric House
3d6a170921
python script to check relay and invoke GCM to notify recipients
2012-10-31 07:20:40 -07:00
Eric House
d97c057b8c
Merge branch 'android_branch' into android_gcm
2012-10-31 06:33:54 -07:00
Eric House
1cae4e9a4c
increase buffer size, and test rather than assert for overflow. Fixes
...
crash with new large GCM devids.
2012-10-31 06:12:24 -07:00
Eric House
6014e3d76f
turn on devid code and implement support in java. Untested, but should work.
2012-10-30 07:57:17 -07:00
Eric House
3469975d2a
add, still disabled by compile-time flags, code to transmit device ID
...
(e.g. ID Android devices get via GCM) to relay and to associate it
there with messages that need to be delivered.
2012-10-30 07:01:47 -07:00
Eric House
37c698f41b
fix link problem with upgrade from natty to oneiric (Ubuntu): -lpq
...
param must follow object file list.
2012-10-19 17:54:18 -07:00
Eric House
0f9500cea3
comment out unused param/variable
2012-10-19 17:53:15 -07:00
Eric House
72b4b02c20
improve messages display
2012-09-11 20:44:07 -07:00
Eric House
a0b564c7e8
show related messages as well
2012-09-11 19:07:16 -07:00
Eric House
45de62818b
format to 80 columns -- no code change.
2012-09-09 15:49:55 -07:00
Eric House
240d308d07
move nperdevice and ntotal side-by-side
2012-05-28 11:08:43 -07:00
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