Commit graph

1796 commits

Author SHA1 Message Date
ehouse
488a2b1bac Remove dependency on non-existant file: should not have been checked in. 2006-09-17 13:33:45 +00:00
ehouse
f0f89aa26e remove dead code using IR libs directly (no exchange mgr); rename
#define to be consistent with same for bluetooth.
2006-09-17 06:16:05 +00:00
ehouse
66def86757 remove dead code using IR libs directly (no exchange mgr); rename
#define to be consistent with same for bluetooth.
2006-09-17 06:15:37 +00:00
ehouse
f508fd853f remove over-agressive attempt to detect out-of-order messages that was
breaking IR comms.
2006-09-17 05:06:46 +00:00
ehouse
9068ba441c What I mean to check in... 2006-09-17 05:04:32 +00:00
ehouse
9c23a2d1fe Punt on problem of svn version in about box changing: comment in
makefile, and make it the last string.
2006-09-17 05:03:59 +00:00
ehouse
a7d45aca6c Prune excessive logging 2006-09-17 04:45:19 +00:00
ehouse
00a45e0e77 fix ARM build so DEBUG setting is passed to compiler, and code so it
compiles that way.
2006-09-16 22:09:28 +00:00
ehouse
abd82e6e2f pass debug -D options to .rcp files to to include debug menus 2006-09-16 16:08:33 +00:00
ehouse
ea2e1c3f0f revert change 1593: FEATURE_HIGHRES is no longer defined. This brings
highres icons back.
2006-09-16 15:53:14 +00:00
ehouse
696836818c be a better master: don't try to send when not connected. 2006-09-16 15:21:27 +00:00
ehouse
1f163665ba tweak svnversion output so make stays happy 2006-09-15 07:52:45 +00:00
ehouse
09568bbf78 strutils macro change; log PID on startup for easier attaching 2006-09-15 07:45:40 +00:00
ehouse
6c3ae78f81 strutils macro change 2006-09-15 07:43:21 +00:00
ehouse
e17a442964 strutils macro change; tweak so compiles non-DEBUG and without Bluetooth 2006-09-15 07:42:10 +00:00
ehouse
5780da7b93 catch up with recent API changes; fix bug in newgame dialog. 2006-09-15 07:39:57 +00:00
ehouse
f1a00fa1b9 strutils syntax changes. Rough cut at reordering loading in game
info: when the device is a client and is starting a new game, we want
to start presenting only the local players.  So load them first, and
reduce nPlayers down to the count of current local players.  Works
well, but can probably be simplified.
2006-09-15 07:36:51 +00:00
ehouse
fab25fc820 do a better job of rejecting messages that have strayed in from a
different game; strutils syntax changes.
2006-09-15 07:34:39 +00:00
ehouse
e61414933f do a better job of rejecting messages that have strayed in from a different game. 2006-09-15 07:33:59 +00:00
ehouse
5d64862ba6 new strutils macro syntax 2006-09-15 07:32:39 +00:00
ehouse
b5402eabc2 params become const 2006-09-15 07:32:04 +00:00
ehouse
9dd96a58d7 params become const; new macro syntax for strutils 2006-09-15 07:31:24 +00:00
ehouse
d382431922 modify MEM_DEBUG versions of strdup utils to record the __FILE__ and
__LINE__ of callers rather than their own to assist in leak detection.
2006-09-15 07:30:00 +00:00
ehouse
d06daad4f0 Names change only: it's actions, not events, that are postponed. 2006-09-14 01:57:40 +00:00
ehouse
2c0283ee31 Remove dead code 2006-09-14 01:48:22 +00:00
ehouse
ed06a20881 New addr param to checkAndDeliver so address can be passed back to
comms; Add debug-only menus to toggle logging to file and memopad.
2006-09-14 01:46:41 +00:00
ehouse
4f2468c61e New addr param to checkAndDeliver so address can be passed back to
comms.
2006-09-14 01:41:37 +00:00
ehouse
3b98337eec Better handling of disconnect and reconnect; esp. slave will keep
trying to connect after losing contact with server.  With this
checkin, a game between palm and linux can be interrupted by either or
both and restarted, with either in either role.  Haven't tested
palm-on-palm yet.  App stop speed is much better now too.
2006-09-14 01:38:09 +00:00
ehouse
66d900b1fa Add debug-only menus to toggle logging to file and memopad 2006-09-14 01:34:22 +00:00
ehouse
13aabdd2e7 Don't typedef array; make array field of struct. 2006-09-14 01:31:13 +00:00
ehouse
35b3b7132a Make formal param const; add initial value to relay-only field so
asserts don't fail b/c of uninitialized value; don't typedef array:
make array field of struct.
2006-09-14 01:25:40 +00:00
ehouse
29ea995a34 Get rid of separate accept thread, instead integrating listening
socket into main event loop (poll underneath).  Works for gtk; still
debugging ncurses.
2006-09-10 19:01:06 +00:00
ehouse
5568d8fdca Check state before accepting post-connection messages; and always set
state when completing connection process.
2006-09-10 18:58:10 +00:00
ehouse
10d6394641 use tmp buffer to avoid copying one byte at a time. 2006-09-10 18:53:03 +00:00
ehouse
c068126c56 tweaks to re/connect logic; process incoming data from main event loop
and enqueue more than one at a time; wipe existing queue when reinited.
2006-09-10 18:34:57 +00:00
ehouse
84a0409103 Attempt to listen for connections on a separate thread so connected
game could disconnect and reconnect, but still need work on adding a
socket to the main thread's io queue from a different thread.
2006-09-08 07:23:19 +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
f46ae953e8 Lots of changes aimed at allowing to quit and restart in the middle of
a BT game: track states so can shutdown cleanly; transition from
master to slave; mechanism to defer work from callbacks to the main
loop.  Can now quit and restart as guest against host on linux.  Have
not tested between two Treos.
2006-09-08 07:06:21 +00:00
ehouse
67b1c7c45a init address field with current bt_adddr 2006-09-08 07:02:16 +00:00
ehouse
e471250e1e cleanup: add missing consts. 2006-09-08 06:43:59 +00:00
ehouse
f73836a0ce add ability to log to non-Memo db (to be read off device). 2006-09-08 06:39:35 +00:00
ehouse
41a36b2352 make formal params const where possible 2006-09-02 05:30:51 +00:00
ehouse
4322fd2820 when logging state transitions, don't unless there's a change 2006-09-02 05:29:59 +00:00
ehouse
4cfe07923d fix bug checking crosschecks with more than 32 tiles. 2006-09-02 05:29:13 +00:00
ehouse
fbe6da0ecd add __FUNCTION__ to assert macro 2006-09-01 04:39:56 +00:00
ehouse
9c06582029 bug fix: reset stack data stream before getting length and writing. Assert
so easier to catch similar problems.
2006-09-01 04:32:57 +00:00
ehouse
29c8b461b8 hardcode psm (for now), and remove spd lookup stuff. Was needed to
connect to linux server which doesn't add spd records yet.
2006-08-29 13:23:00 +00:00
ehouse
334ea9a546 Make linux client work as host. Currently accepts only one connection
and blocks in accept.  Need threads and a piconet.
2006-08-29 13:20:09 +00:00
ehouse
af7767389c use stream_getSize to detect corrupt (truncated) messages. 2006-08-29 13:18:12 +00:00
ehouse
9d541a7d91 make getSize return diff between what's been written and what's already
been read.
2006-08-29 13:13:43 +00:00