Commit graph

29 commits

Author SHA1 Message Date
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
5878ea6018 type name change only 2007-05-26 14:14:01 +00:00
ehouse
2fe75a19a2 add const to a bunch of char* decls in APIs and variables; no code change 2007-02-03 17:54:20 +00:00
ehouse
0d013a0599 Two big changes. Pass focus bit into all or and players when focus
not dived and tray or scoreboard focussed.  This lets platform decide
to display top-level focus via mods to all elements.  Second, when
moving focus to top level from dived, claim not to have handled the
key event (but return true if needs redraw).  This allows platform to
handle shifting focus without requiring callback (which removed.)
2006-11-14 06:46:04 +00:00
ehouse
9a00908cdb When internal focus reaches edge of object, move it back up and onto
the next object using a callback to the platform to determine what, if
any, object is next.  Adjust curses platform to cooperate.  Works
well.  Palm is next.
2006-11-07 05:46:44 +00:00
ehouse
ba4f91d9e0 remove BEYOND_IR, replacing with XWFEATURE_RELAY and
XWFEATURE_BLUETOOTH.  The goal is to be able to build to support
bluetooth only, or relay/ip only, e.g. for a palm bluetooth beta.
Seems to work.
2006-10-10 01:34:37 +00:00
ehouse
975226cc4e remove param from util_addrChange; add comms_getIsServer; save bt_addr
as part of comms.
2006-09-08 07:14:24 +00:00
ehouse
3c6405d0d1 First shot at bluetooth support (turned off in Makefile by default).
A full robot vs. robot game now works between two Treos.  Added UI to
choose BT as transport mechanism, and added new send proc to establish
socket connection between host and guest.  Works only for two devices:
no piconet yet.  No error recovery, ability to quit game in middle,
start new game, etc.
2006-08-23 04:44:55 +00:00
ehouse
e8273bc9f0 Finish scrollbar work by passing number of visible rows to
util_trayHiddenChange, which means an API change.  In board, calculate
bottom of board based on bottom of tray when tray is hidden, and round
so that it's an exact multiple of cell height.  In wince, take
advantage of the new parameter to fix the scrollbar so that very
constrained boards can be scrolled even when the tray is hidden.
2006-05-19 13:44:05 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
b1ab4d8e27 Add range for relay errors. 2005-09-03 06:56:33 +00:00
ehouse
a26549afa9 Pass protocol version code with connect request, and return error if
it isn't what relay can handle.  Report error to user.
2005-07-06 01:36:52 +00:00
ehouse
82a0045cb3 convert util_setTimer to take procptr; remove timer call on board; add
heartbeat to comms that uses util_setTimer with new timer type.
2005-06-23 04:16:53 +00:00
ehouse
e6c3278f0f add util_util_addrChange 2005-04-03 16:57:01 +00:00
ehouse
9c3a8dc228 util_listenPortChange gone 2005-03-19 21:45:21 +00:00
ehouse
7f2819ae8e add util_addrChange 2005-03-09 15:14:10 +00:00
ehouse
0a501ae99d new constant so clients can extend set of warnings 2005-01-20 02:37:13 +00:00
ehouse
ae15505176 make params const 2005-01-09 21:33:48 +00:00
ehouse
2c0af518c6 remove unused constant 2005-01-04 04:07:38 +00:00
ehouse
af1ae65e89 add comment 2004-11-02 06:27:47 +00:00
ehouse
47102d25cb fix linux build: add missing param 2004-10-30 16:59:07 +00:00
ehouse
6b3e3d64a0 Pass number of blanks to util_engineStarting 2004-10-07 13:51:03 +00:00
ehouse
9f8b53a736 add util_getTraySearchLimits 2004-06-25 06:39:24 +00:00
ehouse
140f6aaf53 Allow deletion of picked tiles during face-up picking. 2004-05-14 08:57:38 +00:00
ehouse
354bd96db4 make util_userQuery return bool 2004-02-17 04:00:12 +00:00
ehouse
4bd5a4675b name change 2003-11-30 20:08:09 +00:00
ehouse
ac3f51837f pass current tray into util_userPickTile 2003-11-30 18:54:08 +00:00
ehouse
21623163a0 util_userPickTile replaces util_askBlankFace 2003-11-16 17:11:33 +00:00
ehouse
6a57cef012 first checkin 2003-11-01 05:35:29 +00:00