xwords/xwords4/android/XWords4/jni
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
..
anddict.c Merge branch 'android_branch' into android_dictdb 2012-09-15 16:36:15 -07:00
anddict.h fix emacs compile-commands 2012-02-15 18:07:19 -08:00
andglobals.h add copyright notice; turn logging back on for jni code 2010-03-28 23:38:53 +00:00
Android.mk merge in changes from the -gcm directory: GCM will be a feature of the 2012-11-02 05:35:31 -07:00
andutils.c call back into java for util_getCurSeconds implementation so java and 2012-09-29 19:27:02 -07:00
andutils.h call back into java for util_getCurSeconds implementation so java and 2012-09-29 19:27:02 -07:00
drawwrapper.c replace DeleteLocalRef calls with version that checks for NULL 2012-09-15 15:57:38 -07:00
drawwrapper.h Work when initialized with a null instance of DrawCtxt. (All calls 2010-02-09 14:21:58 +00:00
jniutlswrapper.c Merge branch 'android_branch' into android_dictdb 2012-09-15 16:36:15 -07:00
jniutlswrapper.h combine two jniutils methods into one 2012-09-15 15:21:31 -07:00
LocalizedStrIncludes.h implement resign on top of existing endGame logic, adding "quitter" as 2012-10-07 12:47:06 -07:00
paths.h fix emacs compile-commands 2012-02-15 18:07:19 -08:00
utils.c add copyright notice; turn logging back on for jni code 2010-03-28 23:38:53 +00:00
utilwrapper.c fix to compile with API change; to drop relayid when it's rejected and 2012-11-12 08:03:25 -08:00
utilwrapper.h set gameID when saving CurGameInfo from java IFF it isn't already set. 2010-02-14 22:01:06 +00:00
xportwrapper.c replace DeleteLocalRef calls with version that checks for NULL 2012-09-15 15:57:38 -07:00
xportwrapper.h Work (but don't call into java world) when initialized with a null 2010-02-09 14:20:16 +00:00
xptypes.h fix so count comes from dict; combine two jni methods into one; fix 2011-10-25 18:36:12 -07:00
xwjni.c Fix occasional infinite loop of devices sending and receiving the same 2012-11-13 21:25:03 -08:00