ehouse
321acd1d42
Add and set a compile-time option so comms will set a periodic timer
...
and use it to send and check for heartbeats over any transport.
Caller must supply a reset proc which is called when heartbeat hasn't
been received in too long. No changes required to comms protocol, but
that means the heartbeat interval is fixed at compile time: can't be
negotiated, and the two ends had better agree. Currently tested with
linux host and PalmOS guest, where only the first heartbeat failure is
recovered from. So there's some debugging to be done still.
2007-11-18 23:43:27 +00:00
ehouse
a91056bed2
Make cooperation in a heartbeat scheme a compile-time option. This is
...
meant to allow comms to take over heartbeats.
2007-11-18 23:38:56 +00:00
ehouse
f752eace94
Fix bug reassembling packets; advance credit on each send/receive.
...
With this checkin rfcomm works between two Treos and between Treos and
linux, though with plenty of bugs around reconnecting yet to find.
However, it turns out that even using rfcomm a Treo650 gives no notice
to the other device when shutting down the connection, so rfcomm
doesn't help. Rfcomm is probably not worth using, but the code's now
here and can be turned on in the Makefiles.
2007-11-18 17:57:28 +00:00
ehouse
476e164aa1
Deal with incoming fragmented rfcomm packets; log packet contents.
2007-11-15 14:40:56 +00:00
ehouse
0cdd8a41c4
Add code, disabled in Makefile, to use rfcomm rather than l2cap for
...
data with the goal of detecting disconnects more quickly. Stops
working after a few packets (client only tested against host on linux
so far), and doesn't compile for ARM yet, but the framework is there.
Am framing packets on Palm side which may not be necessary.
2007-11-15 14:39:33 +00:00
ehouse
bcb25d96b2
fix oversized font when scoreboard miniwindow has two lines.
2007-11-14 05:57:12 +00:00
ehouse
29bb6a7ca9
quick hack at framing rfcomm packets
2007-11-14 05:53:28 +00:00
ehouse
5d3e641082
Add ability via compile-time flag to connect via rfcom rather than
...
l2cap. Works with two caveats: assumes l2cap-style complete packets
(no framing), and has problems with linux sdp system's tendency to
retain records long after sessions are closed.
2007-11-13 15:20:33 +00:00
ehouse
938a90634f
fix new compiler warnings; daemonize, and add handler to kill child if
...
parent dies so that script can kill based on pid file.
2007-11-13 03:53:10 +00:00
ehouse
be0005667f
init.d style script for starting and stopping relay
2007-11-13 03:50:41 +00:00
ehouse
4fb097369e
Fix reconnect bug: when master's in initial state but listening socket
...
already inited, shift state to listening
2007-11-10 17:54:05 +00:00
ehouse
f99f718997
Turn on self-spawning: main loop should never crash but exists only to
...
respawn child when it does. Add crash command to test this. Add
ability to set logging level from ctrl port.
2007-11-10 05:41:49 +00:00
ehouse
0cfaa44292
Add English strings as starting point for translation
2007-11-08 05:18:04 +00:00
ehouse
d1054a52ff
Use a single general-purpose callback passed into palm_bt_doWork where
...
it's needed, removing those passed into _init and _send. When client
is unable to connect to host, raise alert to user and give choice to
continue trying. Clear 'suspendBT' flag when user manually resends or
opens different game. Currently this happens only on guest's failure
to find registered SDP; should also extend to remote device not
running at all and to host failure to send to guest.
2007-11-07 13:40:56 +00:00
ehouse
a3ef550426
Use fixed action queue and memcpy rather than rotating buffer; eliminate sequential duplicates of most actions.
2007-11-06 04:05:11 +00:00
ehouse
b7044a2dab
Fix typo breaking compile.
2007-11-05 03:42:27 +00:00
ehouse
ebd158ef35
Update BT code to advertise and search sdp records and use psm reported to work with new Palm
...
code. Log btaddr after converting from name.
2007-11-05 03:38:00 +00:00
ehouse
81aa3f9d2e
Update BT code to advertise and search sdp records and use psm reported to work with new Palm
...
code. Get rid of pthreads dependency which was for logging only.
2007-11-05 03:17:07 +00:00
ehouse
9f1d02c7cd
Byte-swap psm field to callback on ARM: now both client and host work. Move SDP-related constants out where linux can use too.
2007-11-03 22:04:06 +00:00
ehouse
38a7c6a87e
Fix tray hanging below main window; draw pending tiles white-on-black as on other platforms.
2007-10-24 12:46:15 +00:00
ehouse
d929af49ad
Instead of three fixed-sized fonts, choose fonts (lazily) based on the size of the rect into which it's to be drawn.
2007-10-23 03:08:47 +00:00
ehouse
6e8a1922eb
Add ARM support for functions and types required for UUID/PSM lookup.
...
Almost works: if the ARM build is running as host, all's well; but if
it's client, gets btLibL2DiscConnPsmUnsupported after trying to make
an l2c connection.
2007-09-30 17:33:19 +00:00
ehouse
b289d291f9
move LOG_OFFSET
2007-09-30 17:22:38 +00:00
ehouse
302abd3be5
fix log_hex to print nibbles in right order.
2007-09-27 02:56:35 +00:00
ehouse
57baefaf5f
Publish (master) and look for (slave) SPD record so that we're looking for our app and not just BT when connecting. I hoped this would prevent T650s from crashing when nothing's running. It doesn't, but it's the right way to connect, and will allow better error messages or retry logic. Compiles only on 68K at the moment.
2007-09-15 13:50:07 +00:00
ehouse
9f7d69aec6
Turn BT back on as default and up version preparing for next release.
2007-09-15 13:47:28 +00:00
ehouse
e5d5584a04
add logging to help catch a recurring assertion
2007-09-15 13:46:59 +00:00
ehouse
25ae118c4f
up version number for dot release.
2007-08-27 12:43:26 +00:00
ehouse
28dc5c7d38
If we get keyUp event, override earlier determination that this device doesn't get them. This works around Tungsten double-key bug. Better fix will be to use the right FtrGet constants to set generatesKeyUp.
2007-08-22 02:36:13 +00:00
ehouse
47c3b0f7bd
add fnav resource for password dialog, and use it if device has fiveway.
...
Otherwise use FrmSetFocus. This works around a bug where key event that
leaks through from parent dialog dismisses dialog (whereupon another comes
up, and eventually cursor is left flashing on parent.)
2007-06-18 13:21:36 +00:00
ehouse
4aa1f8188b
reset in/out var before each call to util_askPassword
2007-06-10 14:54:47 +00:00
ehouse
d49a49570b
turn off BT; remove rc designation so can ship
2007-06-09 18:09:21 +00:00
ehouse
1e1f14af29
fix to build with relay turned on (part 2)
2007-06-08 03:20:09 +00:00
ehouse
02f7fdc85e
fix to build with relay turned on
2007-06-08 03:15:52 +00:00
ehouse
941244ce26
Fix so can without BT, and so compiler can be specified to Makefile.
2007-06-02 02:07:45 +00:00
ehouse
92f3f87543
Fix so compiles curses-only, and so curses cell can be 2x1 (for square board)
2007-06-01 02:08:04 +00:00
ehouse
6a6261c8de
turn on BT; up alpha version number.
2007-05-27 16:59:24 +00:00
ehouse
0b792a069a
Revert version number to rc3 for 4.2.
2007-05-26 22:59:32 +00:00
ehouse
a79d36a150
Use a timer to avoid trying to get an ACL connection too frequetly.
...
This seems to trigger crash Treo650s far less often than constantly
retrying.
2007-05-26 22:51:25 +00:00
ehouse
c2d97e8f8a
Makefile for Collins dict
2007-05-26 14:47:46 +00:00
ehouse
5878ea6018
type name change only
2007-05-26 14:14:01 +00:00
ehouse
e891a26756
substitute macro for common sizeof(x)/sizeof(x[0]) pattern; no generated code change
2007-05-26 14:03:07 +00:00
ehouse
41b81f463e
Hide tray on turn transitions when more than one non-robot local player present in game.
2007-05-20 20:46:29 +00:00
ehouse
7795068a40
Fix bug where arrow gets placed in wrong cell when tapping on tentative tiles to remove them while board is flipped.
2007-05-18 04:09:10 +00:00
ehouse
b78dfc9d61
Up version for ship; build LocalizedStrIncludes.h per-platform;
...
include language in all platform obj directory names
2007-05-13 21:06:42 +00:00
ehouse
61813278be
Turn of BT for rc2 release
2007-04-28 23:34:44 +00:00
ehouse
4396f8e922
up alpha version number
2007-04-28 22:53:21 +00:00
ehouse
60c1127d66
A few more translations and moving of widgets to accomodate strings
2007-04-27 07:08:09 +00:00
ehouse
acf5554bb3
A couple of additional translations; back out debug-only translations; mark strings that may still need translation.
2007-04-26 01:24:23 +00:00
ehouse
4ea3e72524
Make "Cur" string in tile-picker dialog localizable; move buttons in same for French to fit.
2007-04-24 13:34:21 +00:00