Eric House
243eb213bb
make reply messages a param within result
...
Makes it easier to debug by adding stuff on the relay end
2017-12-06 18:57:48 -08:00
Eric House
70dea02efc
cleanup; fix possible socket drop
...
Haven't seen it happen, but I think there was a bug that could have led
to all the sockets coming back as ready from poll() being dropped. Fixed
that and added/cleaned up some logging.
2017-12-04 20:40:44 -08:00
Eric House
d5c4ecabce
rename class; add some logging
...
Rename class that's no longer just about UDP as it began. Add a bit of
logging. This commit *should* not change behavior at all.
2017-12-03 19:18:36 -08:00
Eric House
fd5549014a
fix logging
2017-12-03 18:52:06 -08:00
Eric House
17d3f14d9e
kill script when no change for two minutes
...
by default -- there's a flag for that too.
2017-12-03 17:05:02 -08:00
Eric House
e485af925f
log milliseconds: seconds not enough.
2017-12-03 16:07:30 -08:00
Weblate
6ffd4d4a37
Merge remote-tracking branch 'origin/android_translate' into android_translate
2017-12-01 04:25:46 +01:00
Eric House
45bb36e66c
pad log and db file names for better sorting
2017-11-30 07:43:04 -08:00
Eric House
f1b91f4df2
exit if tile line hasn't change in 2 minutes
2017-11-29 20:39:15 -08:00
Eric House
12ab4bdc5c
print total runtime on exit
2017-11-29 20:02:27 -08:00
Eric House
db0d5ef746
tweak display; add signal handler for clean shutdown
2017-11-29 19:32:27 -08:00
Eric House
f9c92ca34f
tweak device-in-game summary
...
Group devices by game so connectivity is easier to watch.
2017-11-28 07:08:41 -08:00
Eric House
4b81b784fc
Merge branch 'android_branch' into relay_via_http
2017-11-28 06:24:09 -08:00
Eric House
8e37551f8a
up changelog for new release
2017-11-27 20:40:16 -08:00
Eric House
455373343a
remove requirement for gcm.jar
...
remove from xw4d version too since it can't work anyway.
2017-11-27 20:40:16 -08:00
Eric House
af81342021
create new fdroid variant
2017-11-27 20:40:06 -08:00
Eric House
503702c0e4
log unack'd packets
2017-11-26 20:56:38 -08:00
Eric House
0d8aef06f3
keep packets until ack'd for retry and better logging
2017-11-26 20:11:25 -08:00
Allan Nordhøy
9572cdca1b
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 55.6% (411 of 738 strings)
2017-11-26 15:49:40 +01:00
Eric House
58eafd5fd1
fix glitches in XML strings for Norwegian
2017-11-20 22:04:42 -08:00
Eric House
3216ef8a5c
Merge branch 'android_branch' into android_translate
2017-11-20 06:53:34 -08:00
Eric House
b6124ca2d1
change version strings and changelog
2017-11-19 20:10:54 -08:00
Eric House
4698c0e54b
add not-again explanation for new archive feature
2017-11-19 20:00:45 -08:00
Eric House
039dcdf0cc
print how long run has left
2017-11-19 19:40:29 -08:00
Eric House
ae98425c21
output game progress as a table
2017-11-17 08:06:23 -08:00
Eric House
e7d00cbad4
fix TIMEOUT calculation
2017-11-16 08:29:22 -08:00
Eric House
5ff6f2ca22
fix TIMEOUT calculation
2017-11-16 08:27:51 -08:00
Eric House
ba9b94a0c6
move g_free after last use of ptr
...
(Made same on another branch but couldn't cherry-pick)
2017-11-16 08:18:39 -08:00
Eric House
f45dcb36b1
rewrite of shell script in python3
...
translate the most-used features of my too-big-for-bash script into python3,
which is clearly much better suited. Tried to keep the structure and variable
names intact so that diff has a chance of showing something, but when a class
replaces a bunch of arrays that were being kept in sync there's only so much
you can to. Currently doesn't support stuff like app upgrades and switching
from tcp to udp, but those should be relatively easy to bring over from the
.sh when/if I need them.
2017-11-16 08:15:06 -08:00
Eric House
9d02237f19
add assertion to catch too many players
2017-11-16 08:14:49 -08:00
Eric House
236124319a
rewrite of shell script in python3
...
translate the most-used features of my too-big-for-bash script into python3,
which is clearly much better suited. Tried to keep the structure and variable
names intact so that diff has a chance of showing something, but when a class
replaces a bunch of arrays that were being kept in sync there's only so much
you can to. Currently doesn't support stuff like app upgrades and switching
from tcp to udp, but those should be relatively easy to bring over from the
.sh when/if I need them.
2017-11-16 08:04:18 -08:00
Eric House
8b4042a082
add assertion to catch too many players
2017-11-16 07:59:06 -08:00
Eric House
768b63df24
move free() after last use of ptr
2017-11-15 05:48:45 -08:00
Allan Nordhøy
e6a1aef7a2
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 11.6% (86 of 738 strings)
2017-11-14 06:48:41 +01:00
Eric House
2879055ca9
log url when response code isn't 200
2017-11-13 08:17:26 -08:00
Eric House
8d99ddee7d
Merge remote-tracking branch 'maidu2/relay_via_http' into relay_via_http
...
(Will probably never use this file...)
2017-11-13 07:30:28 -08:00
Eric House
5166933be6
Merge branch 'android_branch' into relay_via_http
2017-11-13 07:27:17 -08:00
Eric House
033ceab9d1
log outgoing params
2017-11-13 07:26:47 -08:00
Eric House
607567cd35
don't allow duplicate group names
...
If group already exists, warn rather than create another with the same
name.
2017-11-12 22:50:45 -08:00
Eric House
c2eff7d3f2
add "archive" option to dialog on opening done game
...
Create the group if needed. Name's not user-editable at this
point. Should be a preference, and that preference should be changed if
user renames it.
2017-11-12 22:31:48 -08:00
Eric House
b77ea0aaad
copied from relay_via_http branch
...
(was at: ./xwords4/android/scripts/relay.py) This is the web API clients
can use to talk to the relay.
2017-11-12 20:29:15 -08:00
Eric House
f072c68bf9
bring in changes from relay_via_http branch
...
It's time to make them live so client development can use a live relay,
and all the old tests pass, so why not.
2017-11-12 20:25:29 -08:00
Eric House
35d172225f
Use AtomicInteger rather than synchronization
2017-11-12 20:10:51 -08:00
Eric House
373c0249bc
start backoff timer at 5 second, not 30.
...
Makes the http case nearly as quick as the udp one when both games are
on the same device. Which is all I've tested so far.
2017-11-12 20:04:22 -08:00
Eric House
fb4f44b0fc
remove mistaken assert
...
I'm not quite sure why it was firing, but the pattern of a FindGame
failing due to a race condition and requiring a retry exists elsewhere
in the code. Lots of tests pass once this change is made. :-)
2017-11-12 19:59:20 -08:00
Eric House
8650795a81
don't crash when can't reach relay via http
2017-11-12 08:53:19 -08:00
Eric House
ec075eff18
comment out assertion that's firing when db wiped
2017-11-11 18:49:23 -08:00
Eric House
5bd71ba7c5
put cids back into the database
...
The hack I came up with for storing them in memory isn't working. Even
if it's just that I don't understand C++ maps they need to be cleared
when the DB's wiped (my favorite test these days) and I don't want to
spend the time now.
2017-11-11 18:46:02 -08:00
Eric House
057728c287
make gtk include an invite ID in rematch invitations
...
otherwise Android refuses to accept the second "" it receives.
2017-11-11 16:39:09 -08:00
Eric House
cb87a849ab
rename dict symlink
...
It breaks rematch that "dict" is being passed to the Android client from
the linux side, and this is easier than figuring out how and when to
dereference the link.
2017-11-11 16:12:06 -08:00