Commit graph

1235 commits

Author SHA1 Message Date
ehouse
f625557cd9 more debug info 2005-04-20 11:59:08 +00:00
ehouse
9e572d1743 add several new commands 2005-04-20 11:57:26 +00:00
ehouse
bf41f95f44 fix warnings 2005-04-08 14:28:04 +00:00
ehouse
6a5b03f1aa add rwlock helper classes 2005-04-08 14:18:14 +00:00
ehouse
37062d4ab6 mutex replaced by rwlock 2005-04-08 14:17:28 +00:00
ehouse
d783a5ba2e replace mutex with rwlock; move creation inside class so can be
controlled by same rwlock.
2005-04-08 14:15:23 +00:00
ehouse
a9c3bac6df move creation inside class so can be controlled by same rwlock 2005-04-08 14:13:25 +00:00
ehouse
26ebce5853 turn on warnings 2005-04-08 14:11:00 +00:00
ehouse
97b0998eaf don't assert after poll returns! Instead close socket on hangup. 2005-04-03 17:02:09 +00:00
ehouse
11c732ef7a separate internalization of comms from call to connect to relay since
the first must finish before the caller will have a valid reference to
comms.  call util_addrChange.
2005-04-03 17:00:59 +00:00
ehouse
85dbf98aca separate internalization of comms from call to connect to relay since
the first must finish before the caller will have a valid reference to
comms.
2005-04-03 16:58:36 +00:00
ehouse
e6c3278f0f add util_util_addrChange 2005-04-03 16:57:01 +00:00
ehouse
d2e64ff324 add linux_util_addrChange (stubbed out) 2005-04-03 16:56:39 +00:00
ehouse
f58a885ce2 track whether running on POSE to work around NetLibSelect bug; track
whether addr needs re-resolving.
2005-04-03 16:55:38 +00:00
ehouse
88f4c3749b add palm_util_addrChange; track whether running on POSE to work around
NetLibSelect bug.
2005-04-03 16:54:54 +00:00
ehouse
83e24bb9fa remove unneeded param 2005-04-03 16:53:32 +00:00
ehouse
b5f09c1dd2 deal with address change, esp of hostname, and separate name
resolution from socket opening.
2005-04-03 16:52:51 +00:00
ehouse
b64c359075 turn off linger on new sockets; use long enough timeout on name
resolution that can succeed on device.
2005-04-03 06:24:55 +00:00
ehouse
e098b3b7cd catch up with api changes 2005-04-03 04:13:09 +00:00
ehouse
85f10cd2e7 add comms_getInitialAddr; protect against recursive sends 2005-04-03 02:49:04 +00:00
ehouse
1241c0fdfe add comms_getInitialAddr 2005-04-03 02:48:50 +00:00
ehouse
75b0e6cf11 needn't open netlib from here! 2005-04-03 02:47:46 +00:00
ehouse
2ccdf6878a fix for api change 2005-04-03 02:47:08 +00:00
ehouse
1c38bcf6ed first checked in. Works, but error recovery not done yet. 2005-04-03 02:46:31 +00:00
ehouse
0a0bea17ed move generic send/receive stuff from palmir.c; tweak data structures
for relay scheme.
2005-04-03 02:00:44 +00:00
ehouse
803371ef5a move generic send/receive stuff from palmir.c. 2005-04-03 01:59:57 +00:00
ehouse
8e5f222fe6 modify ip-params dialog for new relay-based scheme, using new struct
fields and dialog objects.
2005-04-03 01:58:02 +00:00
ehouse
d8f23ba643 add XP_LD 2005-04-03 01:53:07 +00:00
ehouse
52bf5f3e8f remove ip-related stuff to new files 2005-04-03 01:47:34 +00:00
ehouse
5539c05080 add palmip.c; change how upload works 2005-04-03 01:39:08 +00:00
ehouse
712ec202d2 create new comms object if needed for non-first game 2005-04-03 01:36:59 +00:00
ehouse
6baa887b77 add command parsing and dispatch table 2005-03-31 02:20:50 +00:00
ehouse
c1c224cdae first checked in. works but not robust 2005-03-31 02:11:51 +00:00
ehouse
c41dc77934 break up compile; new file 2005-03-30 02:00:15 +00:00
ehouse
bf6837a9d0 this file owns thread creation now 2005-03-30 01:52:10 +00:00
ehouse
5582b5be2c new include 2005-03-30 01:49:40 +00:00
ehouse
7bafdf8e5a first checked in 2005-03-30 01:47:55 +00:00
ehouse
863e241fc6 use new thread pool class 2005-03-30 01:42:28 +00:00
ehouse
12795788ea cleanup 2005-03-30 01:32:02 +00:00
ehouse
12b2828d0d use system APIs to find stuff in app directory rather than hard coding
path.  Use system apis to find uniquie file names for games.
2005-03-26 03:25:44 +00:00
ehouse
1edc549adf use c: drive, not z:, for uniformity with native version 2005-03-26 03:16:55 +00:00
ehouse
e3b319f341 don't use null comms 2005-03-25 13:41:18 +00:00
ehouse
1ec9e7b851 add cmd to lock/unlock main mutex 2005-03-25 03:24:00 +00:00
ehouse
7a6a5df437 use new stack-based lock 2005-03-25 03:21:16 +00:00
ehouse
28c200bcaa first checked in. works 2005-03-25 03:19:03 +00:00
ehouse
3e281299ed check for null comms before using 2005-03-25 03:13:10 +00:00
ehouse
99f2804141 don't instantiate comms unless it'll be used. Internally it has no
idea it's not supposed to connect to relay otherwise.
2005-03-25 03:11:54 +00:00
ehouse
f17a3bec58 add mutexes; general improvements 2005-03-25 02:59:44 +00:00
ehouse
9fb0b2691d first checked in 2005-03-25 02:59:10 +00:00
ehouse
3631b68fa8 let socket server know how many connections to expect 2005-03-23 05:48:11 +00:00