Netlib runs as a separate system thread and maintains the IP stack for you. You will only loose data if the stack overflows (PS it's really a FIFO queue, but who cares if we disname constructs ;<} )
The way a socket reacts depends on the blocking mode of the socket. Blocking will wait, where as Non-Blocking will only immediately return. You need to pick one of these modes that suites your application best and then design your system accordingly. I usually use Non-Blocking, so that my app can do other things while "waiting". At least give the user a Cancel Button. -------------------------------------------------------------------- Gary G ----- Original Message ----- From: "Brian Smith" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Saturday, January 12, 2002 6:48 PM Subject: Re: Listening sockets... am I missing something? > On Fri, 11 Jan 2002, Brian Smith wrote: > > > I've been able to get listening sockets to work on POSE so far (which I > > realize is different in that respect), but do they work on real Palm > > devices at all? I've never gotten them to work myself, and I've had > > others use what I've written and see the same things. > > I've gotten as far as getting through without any serious errors, with > some (rather elusive) information I've found by searching around. What's > puzzling me now, though, is something I hadn't noticed before about > NetLibSocketListen... is the socket only listening while the network > library is waiting in that function? If so, is there any way to put a > socket in listen mode and check for connections like you normally can in > the BSD socket API? > > It's looking like that because, even though I can get a socket into listen > mode, I get a "connection refused" when trying to connect to it from > another machine. That, plus the fact that what I read says that when > NetLibSocketListen returns success, there is a connection request waiting. > What I can't do is sit around forever in that function for a connection... > it only slows everything else down. > > ----------------------------------------------------------------------- > Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ > Software Developer // Gamer // Webmaster // System Administrator > A Freudian slip is when you say one thing but mean your mother. > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
