Eric House
a18fb62b0f
fix dialog not having custom OK button by not ignoring the param passed in.
2013-01-31 06:59:42 -08:00
Eric House
bf479c4334
Merge branch 'android_branch' into gtk_multigame
2013-01-30 08:03:48 -08:00
Eric House
660efa6380
rename script to be easier to type
2013-01-30 08:03:13 -08:00
Eric House
66a00bd76e
make DlgState Parcelable rather than Serializable to work around what
...
seems to be a bug in the Blaze's OS. (Requires that it be a
standalone class.)
2013-01-30 07:58:37 -08:00
Eric House
5e7fd39d66
always remove dialog state so we don't get confused
2013-01-29 21:59:42 -08:00
Eric House
0dc3856250
set initial rowID based on clock to avoid duplicates after an
...
uninstall/reinstall.
2013-01-29 19:02:53 -08:00
Eric House
d154efa441
rowid needs to be autoincrement to be useful as a token with new relay
...
protocol. And you can't make it autoincrement except when creating a
table. So add new column set equal to current rowid, then create a
new table and copy the old data into it.
2013-01-29 19:01:00 -08:00
Eric House
893715fec4
Merge branch 'android_branch' into gtk_multigame
2013-01-29 18:58:05 -08:00
Eric House
cdd40b0782
Merge remote-tracking branch 'origin/android_branch' into android_branch
2013-01-29 18:57:38 -08:00
Eric House
d88f66a890
record experiment with serialization -- no code change.
2013-01-29 18:57:03 -08:00
Eric House
d5842e79c2
use the new ANON devid type
2013-01-29 18:36:19 -08:00
Eric House
2cfa56c2d8
update to not require incomplete gcm module
2013-01-29 18:34:33 -08:00
Eric House
f3a063698c
set initial rowID based on clock to avoid duplicates after an
...
uninstall/reinstall.
2013-01-29 08:01:14 -08:00
Eric House
c75ecef240
test deletion of games and generation of anonymous relayIDs
2013-01-29 07:42:10 -08:00
Eric House
9ee16adc3a
add support for udp-based delete and anonymous (relay-provided) regIDs
2013-01-29 07:38:07 -08:00
Eric House
72e100ccac
use autoincrement primary key, same as on Android
2013-01-28 07:02:33 -08:00
Eric House
d78a4979da
HACK: if gi's notion of gameID is out of sync, force it in (logging
...
the fact). I'm not sure why but this is required sometimes on
Android.
2013-01-28 07:01:49 -08:00
Eric House
339ec66844
Merge remote-tracking branch 'origin/gtk_multigame' into gtk_multigame
2013-01-28 06:53:17 -08:00
Eric House
3e723c72c5
call comms_stop() before closing (removing from memory) a game.
2013-01-28 06:52:32 -08:00
Eric House
1546b15997
rowid needs to be autoincrement to be useful as a token with new relay
...
protocol. And you can't make it autoincrement except when creating a
table. So add new column set equal to current rowid, then create a
new table and copy the old data into it.
2013-01-28 06:51:39 -08:00
Eric House
d1621c8d4b
track and log all packetIDs and acks, including number (but not type)
...
of unacked packets.
2013-01-27 21:29:36 -08:00
Eric House
4aee75aeab
ack all packets from clients; log acks. This is for debugging and may
...
not need to stay.
2013-01-27 21:26:27 -08:00
Eric House
302ac9d55c
script to list who's attached to the db
2013-01-27 08:30:02 -08:00
Eric House
82dc986c79
remove bad asserts and unused variable
2013-01-26 21:49:17 -08:00
Eric House
cc69901632
reset to null in loop in case exit due to exceeding retry count
2013-01-26 21:17:46 -08:00
Eric House
a9b459ea2e
log rather than assert
2013-01-26 21:16:48 -08:00
Eric House
06bc80fcc9
let's make 1 the default number of threads
2013-01-26 20:59:27 -08:00
Eric House
cba04e4b95
Merge branch 'android_branch' into gtk_multigame
...
Conflicts:
xwords4/relay/xwrelay.cpp
2013-01-26 20:20:54 -08:00
Eric House
3be45a67f7
fix erroneous asserts: it's uncommon but ok for a device to get
...
assigne a second connname. (Cause: failure of relay to receive the
device's ACK.)
2013-01-26 18:56:53 -08:00
Eric House
2fdcea54f5
fix logging of sockets
2013-01-26 18:55:55 -08:00
Eric House
7ecf57c556
increase size of buffer for incoming proxy packets, since now that I
...
have 50+ saved network games requests for moves are that big. (This
is a temporary fix.)
2013-01-26 18:48:57 -08:00
Eric House
4b335ab464
make function static
2013-01-26 18:36:40 -08:00
Eric House
b324a382e2
I've seen read() return 0 after being told there's something on the
...
socket. So in that case loop and try again five time -- in case the
docs are wrong that 0 means EOF? Hmmm.
2013-01-26 11:58:48 -08:00
Eric House
88b20769f9
increase buffer size
2013-01-26 11:56:29 -08:00
Eric House
2aba3c0ce1
load dict early enough to have lang available to comms when it first connects.
2013-01-26 11:56:20 -08:00
Eric House
336e3cd289
handle all three types of message in a single thread, punting all
...
synchronization issues to a future point where the load demands it.
2013-01-26 11:54:48 -08:00
Eric House
9e1d09648d
fix log statement
2013-01-26 11:04:20 -08:00
Eric House
8cb0a8a7a7
fix crash on startup (as done already on gtk branch)
2013-01-26 09:23:44 -08:00
Eric House
7ee402d2ae
move callback into queueelem so same queue can service udp and tcp (eventually)
2013-01-25 07:19:44 -08:00
Eric House
4417591b06
debug pref to disable GCM so new stuff can be tested on-device
2013-01-25 07:17:00 -08:00
Eric House
83441c65ef
debug pref to disable GCM so new stuff can be tested on-device
2013-01-25 07:16:38 -08:00
Eric House
f91af77438
always try starting UDP threads in case Service has been stopped;
...
implement transportSend in RelayMsgSink since relay-connection packets
need it.
2013-01-25 06:22:37 -08:00
Eric House
c8b3050c8d
fix duplicate key that was getting lots of extra games created
2013-01-25 06:20:32 -08:00
Eric House
23b7e5a2eb
fix syntax error in query
2013-01-24 21:11:15 -08:00
Eric House
2e0ff09cf9
fix memory leak and uninstall idle proc on the way out
2013-01-24 21:10:41 -08:00
Eric House
af58e7c4e1
comment
2013-01-24 20:27:56 -08:00
Eric House
084643ca82
don't include dead-game messages when fetching for devices
2013-01-24 20:27:36 -08:00
Eric House
7253cfa313
assert that map.insert() is actually doing something in those cases
...
where I expect it to.
2013-01-24 19:34:20 -08:00
Eric House
036c908b72
remove token from XWPDEV_HAVEMSGS message
2013-01-24 19:33:33 -08:00
Eric House
5f2d628855
update protocol description
2013-01-24 19:33:02 -08:00