Eric House
19573af533
a more elegant way of building up params to pass to PQexecParams
2014-04-25 18:45:51 -07:00
Eric House
6eaf7a57b5
fix crash when there's a "'" in model name
2014-04-25 07:41:58 -07:00
Eric House
4de894627a
fix infinite loop -- duh
2014-04-18 06:01:03 -07:00
Eric House
0e4f24dfe9
use fixed string for model rather than clearing it
2014-04-17 08:24:09 -07:00
Eric House
6f0b5c1bea
empty the model string if the client version's lower than what I'm
...
about to release and there's non-ascii stuff in it.
2014-04-17 08:13:01 -07:00
Eric House
f05b1e0525
log model -- can remove later
2014-04-17 07:44:32 -07:00
Eric House
0897ae2ba9
log the bad query
2014-04-17 07:43:58 -07:00
Eric House
ad0f882335
change port to live server's so recovery can be faster
2014-03-12 19:47:14 -07:00
Eric House
5f34fe3317
first cut at script to fetch messages for a game
2014-03-12 19:45:07 -07:00
Eric House
27a5990283
log out-of-date token
2014-02-24 08:00:52 -08:00
Eric House
cd31cd432a
tweak column display
2014-02-24 08:00:43 -08:00
Eric House
b840f7d708
add filter for rooms
2014-02-24 08:00:21 -08:00
Eric House
1f698eae6d
use ccache for relay build too
2014-01-25 19:03:50 -08:00
Eric House
0fb4c19ca7
fix syntax error in table creation sql
2014-01-07 07:17:48 -08:00
Eric House
b43855a313
fix curses build for 64bit compile and to use common layout (meaning
...
tray is now under the board unstead of to the right). Works on 64-bit
system at least for non-networked games.
2014-01-05 13:04:59 -08:00
Eric House
b5bec1e2cd
ignore valgrind core files
2013-11-14 21:48:06 -08:00
Eric House
91b54dd66a
use delete to free what's allocated using new
2013-10-25 06:16:17 -07:00
Eric House
a33f04e077
fix shutdown to work (by sending signal)
2013-10-25 06:16:17 -07:00
Eric House
e8616735b6
move .o files into an obj directory
2013-10-21 18:52:12 -07:00
Eric House
9efb044c4f
simplify construction of one query
2013-10-09 21:13:22 -07:00
Eric House
ec468ef3ba
printf -> catf missed because in ifdef
2013-10-09 20:40:21 -07:00
Eric House
bb246fd7e7
rename printf -> catf; no other changes
2013-10-09 20:20:45 -07:00
Eric House
c34fb48a2c
oops -- init mutex. This may be why the relay's hanging after a
...
crash.
2013-10-09 20:08:29 -07:00
Eric House
7290a41913
tweak; add limit
2013-10-01 00:01:39 -07:00
Eric House
b3723897d5
to prevent duplicate UDP packets (I hope), bind the UDP socket to a
...
single ip address rather than INADDR_ANY. Get that address at runtime
for an interface provided in the config file.
2013-09-30 23:40:12 -07:00
Eric House
945c41c615
Merge remote branch 'origin/android_branch' into android_branch
2013-09-27 05:46:43 -07:00
Eric House
9f38ded122
new script
2013-09-27 05:46:06 -07:00
Eric House
4202f24091
don't allow reregister with a RELAY_ID (a client bug)
2013-09-26 08:37:21 -07:00
Eric House
c1f94681bb
when a message sent via udp from cref isn't acked, add it to stored
...
messages so gcm loop can pick it up.
2013-09-26 07:14:24 -07:00
Eric House
63067dc374
oops: the test is equality with 'epoch'
2013-09-25 07:33:41 -07:00
Eric House
31fa2ea442
turn on feature where sent messages are marked rather than deleted.
...
Make default 'epoch' rather than NULL so constraint will work to
prevent duplicates, and fix insertion SQL to not violate constraint.
2013-09-25 06:38:10 -07:00
Eric House
fb59aa4907
use epoch rather than null as default so constraint will work
2013-09-24 08:37:18 -07:00
Eric House
8862c5f750
move include file up
2013-09-24 08:37:18 -07:00
Eric House
a4de87cfeb
fix constraint, and add stime to it
2013-09-24 08:37:18 -07:00
Eric House
f59a7db85d
update to work with either udp or tcp-sourced stored messages
2013-09-23 07:18:00 -07:00
Eric House
e1a5a2d53a
remove excess logging
2013-09-22 20:35:32 -07:00
Eric House
2e6d49303b
remove logging around hasNoMessages stuff -- too much
2013-09-20 04:54:05 -07:00
Eric House
e12069b45d
fix to work with devids and devtypes being arrays
2013-09-19 06:38:37 -07:00
Eric House
5d49b9b5d6
oops: don't default to clearing relayid
2013-09-18 08:04:12 -07:00
Eric House
9650000fce
add filter option -- sometimes want to see devices not in a current game.
2013-09-18 07:03:25 -07:00
Eric House
af44c6d190
only append to mtimes when appending a new devid
2013-09-15 12:54:47 -07:00
Eric House
b67ea7293d
add mtimes, remove mtime, for devices to track each time the devid
...
changes. Eventually; now it's updated too often.
2013-09-15 12:46:40 -07:00
Eric House
b0e2975994
show specific columns from devices table rather than *
2013-09-15 10:16:11 -07:00
Eric House
c212c0e367
add in-memory cacheing of messageless-connname/hid combos.
2013-09-15 10:04:46 -07:00
Eric House
657d0d2b1f
-l - means log to stderr
2013-09-15 10:04:45 -07:00
Eric House
de1f1cf681
in devices table, replace devid and devtype with array so can track
...
history if/as they change; remove rrcount as no longer needed.
2013-09-15 09:59:51 -07:00
Eric House
2629c07256
Address problem with devids (e.g. GCM): until now when you got a new
...
devid you tossed your relayID and reregistered. Which meant any
existing messages meant for your relayID were orphaned, and any open
games didn't know who they belonged to until you reconnected to them
with your new relayID. So: modify the UDP protocol (though not on
Android yet) to include both relayID and devid with registration, with
one or the other an empty string if not present or not changed from
earlier. I can't fix existing clients that are dropping their
relayIDs, but when one does a re-connect without a relayID I can look
it up from the existing game record, then reuse it rather than issue a
new one. Better than nothing -- and that protocol will be obsolete
soon anyway.
2013-09-14 21:06:14 -07:00
Eric House
2cad611ec4
get postgres port from config; send connname only if present
2013-09-11 07:42:14 -07:00
Eric House
c115752852
supply in linux client, and look for and store on relay, os version
2013-09-07 16:17:31 -07:00
Eric House
5b7a039d78
cleanup
2013-09-05 07:53:47 -07:00