xwords/xwords4/common
Eric House c4df31892e Fix occasional infinite loop of devices sending and receiving the same
message over and over when getting updated by GCM.  The problem
occurred when one device had an un-ACKable initial message still in
its queue.  I call resendAll a lot, which caused that message to get
resent to the other game which then replied without being able to ACK
it so it remained to be sent again.  This would continue until users
moved forward in the game.  The fix is to add a backoff timer to
resendAll() so that it can't loop.  The timer is reset when an ackable
and new message is received, meaning there's been a change in what's
available to resend.  And since users calling resendAll manually
expect it to do something, add a force param that ignores the backoff.
seems to fix the problem (but needs a lot of testing.)
2012-11-13 21:25:03 -08:00
..
.gitignore ignore more 2010-03-14 16:25:27 +00:00
board.c pass index of resigning player into util_notifyGameOver. Not yet 2012-10-09 05:31:12 -07:00
board.h use const where possible for game_writeToStream and others it calls. 2012-03-11 18:28:14 -07:00
boarddrw.c i => ii; no other change 2012-08-22 07:44:21 -07:00
boardp.h add compile-time option to have tap on empty tray space return one 2012-06-29 06:50:46 -07:00
bufqueue.c add bqRemoveAll 2009-09-19 21:28:07 +00:00
bufqueue.h add bqRemoveAll 2009-09-19 21:28:07 +00:00
commmgr.h Remove all tabs. No code changes. 2008-05-31 03:26:16 +00:00
comms.c Fix occasional infinite loop of devices sending and receiving the same 2012-11-13 21:25:03 -08:00
comms.h Fix occasional infinite loop of devices sending and receiving the same 2012-11-13 21:25:03 -08:00
comtypes.h Fix occasional infinite loop of devices sending and receiving the same 2012-11-13 21:25:03 -08:00
config.mk fix bug with clean target introduced when BUILD_DIR was introduced 2012-10-07 12:14:47 -07:00
contypct.h Add define set to number of conn types compiled in; use it to compile 2009-09-05 13:08:46 +00:00
dawg.h get rid of NODE_CAN_4. Not change to post-compiled code 2012-08-01 20:29:15 -07:00
dbgutil.c add stream_copyBits, and use it to hash the move stack -- commented 2012-05-22 19:24:54 -07:00
dbgutil.h add stream_copyBits, and use it to hash the move stack -- commented 2012-05-22 19:24:54 -07:00
dictiter.c fix edge cases in prefix matching 2012-08-28 07:35:11 -07:00
dictiter.h Fix prefix matching to accept letters constituting the first part of a 2012-08-27 21:50:09 -07:00
dictnry.c add dict_getMd5Sum 2012-09-08 10:09:31 -07:00
dictnry.h add dict_getMd5Sum 2012-09-08 10:09:31 -07:00
dictnryp.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
dragdrpp.c Fix release-build warnings that new compiler flags. 2012-10-07 11:43:50 -07:00
dragdrpp.h add and set new flags for crosshairs so platforms can do better than 2010-08-11 18:50:16 -07:00
draw.c catch up with API changes. GTK to use this still needs to be fixed! 2008-08-30 13:54:47 +00:00
draw.h Make rem string measure function return boolean to indicate rect will 2012-07-15 09:30:27 -07:00
engine.c make util_hiliteCell conditional, and remove from android where it 2012-10-05 18:51:32 -07:00
engine.h Revert "Fix bug where if word being scored for long-touch-on-scoreboard wasn't" 2012-08-15 18:01:36 -07:00
game.c tweak logging; fix uninitialized debug-only variable 2012-11-13 21:18:52 -08:00
game.h add new game_changeDict() and enough gtk code to test it. 2012-10-23 19:06:00 -07:00
mempool.c add counter to mpool tracking so easier to find source of leaks 2012-09-05 19:08:22 -07:00
mempool.h add XP_FREEP. Should be no change in behavior. 2011-04-07 18:07:45 -07:00
memstream.c make stream_catString work with null ptr 2012-11-01 21:08:58 -07:00
memstream.h add mem_stream_make_sized, meant to make saving games more efficient 2012-09-11 19:06:27 -07:00
model.c Fix release-build warnings that new compiler flags. 2012-10-07 11:43:50 -07:00
model.h pass additional param into callback -- unused so far. 2012-09-06 07:19:12 -07:00
modelp.h fix bugs around new variable-length tiles array changes, and otherwise 2011-11-28 18:46:08 -08:00
movestak.c add a bit more logging to comms 2012-11-13 06:14:36 -08:00
movestak.h use new hash algorithm for new stream version, old for previous 2012-05-28 11:07:59 -07:00
mscore.c fix compile errors (mostly unused variables) found by gcc on latest 2012-09-25 07:28:02 -07:00
nwgamest.c i => ii; no other change 2012-08-22 07:44:21 -07:00
nwgamest.h Add support for a config button as a cleaner alternative to launching 2009-03-08 19:54:14 +00:00
pool.c i => ii; no other change 2012-08-22 07:44:21 -07:00
pool.h add some consts 2012-07-09 21:36:17 -07:00
rules.mk makefile cleanup 2006-02-17 07:27:36 +00:00
scorebdp.c Make rem string measure function return boolean to indicate rect will 2012-07-15 09:30:27 -07:00
scorebdp.h track focus on Rem: region of scoreboard in addition to players' score 2008-10-24 08:56:20 +00:00
server.c fix crash when old client connects to new host by making host use the 2012-10-27 08:52:54 -07:00
server.h add missing ifdef 2012-11-01 07:58:36 -07:00
states.h use marker enum to test for size. no code change 2012-04-22 17:55:53 -07:00
strutils.c convert a few more variable names from single- to double-letter 2012-08-23 06:38:29 -07:00
strutils.h we need the base64 stuff even when don't have SMS -- for serialization. 2012-07-07 11:05:45 -07:00
tray.c i => ii; no other change 2012-08-22 07:44:21 -07:00
util.h Fix relay devid protocol to deal with case where client submits a 2012-11-10 15:05:44 -08:00
virtuals.h Remove all tabs. No code changes. 2008-05-31 03:26:16 +00:00
vtabmgr.c i => ii; no other change 2012-08-22 07:44:21 -07:00
vtabmgr.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
xwproto.h fix several crashers that prevented network games from working when 2011-11-15 06:13:25 -08:00
xwstate.h update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
xwstream.h add stream_copyBits, and use it to hash the move stack -- commented 2012-05-22 19:24:54 -07:00