ehouse
dc25eb9e35
first checked in.
2005-03-19 22:16:49 +00:00
ehouse
73104819bd
first checked in. primative, but works.
2005-03-19 22:14:27 +00:00
ehouse
50d8c1067b
total rewrite. New protocol eliminates need to store and forward
...
messages: clients connect, then messages are passthru only. Add
control port. Use stl map and vector to remove limit on number of
connections. Also removed synchronization, which need to be re-added.
2005-03-19 22:13:43 +00:00
ehouse
ab6d11a32a
add two new .cpp files
2005-03-19 22:09:03 +00:00
ehouse
7d622f9484
fix and cleanup linux client to move to using tcp. Add the ability to
...
deal with socket dying and (maybe) being replaced. Only connect on
demand now, when first packet's ready to go.
2005-03-19 22:07:53 +00:00
ehouse
02bc9178db
add XP_STRNCPY
2005-03-19 22:06:23 +00:00
ehouse
d6efb446d1
Wrapping protocol around standard comms stuff that talks to the relay.
...
Revert previous relay-related changes.
2005-03-19 22:01:38 +00:00
ehouse
19b0d88a69
remove gross connectRelay hack. There's now a wrapping protocol that
...
talks to the relay entirely inside comms.c.
2005-03-19 21:48:47 +00:00
ehouse
8eb4abac6f
added '-I relay/'
2005-03-19 21:47:18 +00:00
ehouse
fc6095255d
listen port goes away; add separate union member for relay addressing
2005-03-19 21:46:51 +00:00
ehouse
022fd1cb9d
util_listenPortChange gone
2005-03-19 21:45:21 +00:00
ehouse
272e66e635
nuke logging that was polluting ncurses screen
2005-03-19 21:44:35 +00:00
ehouse
af8602f63b
add stringFromStreamHere()
2005-03-19 21:44:09 +00:00
ehouse
70b45e11c5
catch up with API change
2005-03-15 15:29:17 +00:00
ehouse
dd8f2f92c5
fix problems with clients in networked games making a move after the
...
game should end: check number of passes and that all players still
have tiles before running robot.
2005-03-15 15:18:58 +00:00
ehouse
2e0ee693bc
add assert
2005-03-15 15:13:52 +00:00
ehouse
38bd3d4528
correct spelling
2005-03-15 06:27:21 +00:00
ehouse
5e547eb8b0
move playerNum into dsi so can be used in formatting score
2005-03-15 06:26:58 +00:00
ehouse
13b55cfeab
use compiler flags that ease debugging
2005-03-15 06:22:48 +00:00
ehouse
26cd5c2d88
add model_recentPassCountOk
2005-03-15 03:31:52 +00:00
ehouse
912f53178b
move playerNum into dsi so can be used in formatting score; show
...
most recent turn (like symbian 80)
2005-03-15 03:29:37 +00:00
ehouse
36bba4024b
move playerNum into dsi so can be used in formatting score
2005-03-15 03:27:24 +00:00
ehouse
af1416ed99
api change
2005-03-12 05:33:40 +00:00
ehouse
1c7e530538
deal with tcp streams the same in curses as on gtk. Both work now
...
with the relay.
2005-03-12 05:33:30 +00:00
ehouse
229d615e84
comment out overly-verbose logging
2005-03-09 15:19:40 +00:00
ehouse
219b6ce937
save hostIDs as part of comms; add logging
2005-03-09 15:18:17 +00:00
ehouse
f5c43f3dfc
add util_addrChange
2005-03-09 15:14:10 +00:00
ehouse
ef828a0bdf
fix misspelling
2005-03-09 15:12:57 +00:00
ehouse
75ae636807
remove unused file
2005-03-09 15:09:24 +00:00
ehouse
d22f34c713
add sym_util_addrChange
2005-03-09 15:06:14 +00:00
ehouse
4ca237cb32
fold reading into send socket. Now receives packets from relay,
...
though things break down after a few moves.
2005-03-09 15:04:28 +00:00
ehouse
26f532bcf1
fold reading into send socket
2005-03-09 14:51:11 +00:00
ehouse
68d6d04459
merge from palm 1.4 branch changes to allow arm-only, etc builds from
...
commandline.
2005-03-08 05:36:33 +00:00
ehouse
0f9eb528d8
fix conflict with type from Palm headers; fix for non-BEYOND_IR case.
2005-03-08 05:33:38 +00:00
ehouse
9b9f71322f
first checked in
2005-03-06 18:30:59 +00:00
ehouse
39225c8622
first checkin. Works about half the time for one or two games at a
...
time. Very fragile.
2005-03-06 18:27:16 +00:00
ehouse
897caf4e88
Replace UDP-based messaging with TCP. Stream protocol says distinct
...
message is length plus data. Use non-deprecated gtk select-like
function. With these changes can play full games through the relay on
gtk. Untested on ncurses but probably broken.
2005-03-06 18:07:00 +00:00
ehouse
cb3a3854e9
add support for relay for use by NAT'd/firewalled devices: cellphones.
...
Include cookie users will agree on on for relay rendevouz, and
sender/receiver IDs for when there are >2 devices in game. Supports
games between linux clients now, but needs a lot more work.
2005-03-06 17:56:34 +00:00
ehouse
71870695cc
HACK: server must ping relay or it can't be contacted
2005-03-06 17:51:18 +00:00
ehouse
2e9dd5f3ea
cleanup; add debugging info for state changes
2005-03-06 17:49:37 +00:00
ehouse
840f8c273a
add symrsock; begin separating DEBUG and non- targets
2005-03-03 15:31:11 +00:00
ehouse
1a420d3f5f
open socket for incomming, and provide callback to get incomming data
...
to comms. Doesn't work yet, likely because of firewall issues, so
simple UDP may not be the answer.
2005-03-03 15:29:59 +00:00
ehouse
1879a23c34
first checked in. Untested since I can't get packets to the device
...
from outside the carrier's firewall.
2005-03-03 15:28:24 +00:00
ehouse
58eba68c1b
cleanup
2005-03-03 15:26:19 +00:00
ehouse
8ffb617a17
open socket for incomming, and provide callback to get incomming data
...
to comms. Doesn't work yet, likely because of firewall issues, so
simple UDP may not be the answer.
2005-03-03 15:24:53 +00:00
ehouse
c8b87e64f7
add sym_util_listenPortChange
2005-03-03 02:17:46 +00:00
ehouse
ca8237fe89
turn on BEYOND_IR
2005-03-02 15:01:47 +00:00
ehouse
3b899427d5
remove define that should be passed in as -D
2005-03-01 13:55:58 +00:00
ehouse
0e347790ba
add socket-related libs
2005-03-01 13:54:50 +00:00
ehouse
1555e99a74
SetActive call required
2005-03-01 13:53:41 +00:00