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 would think that if it weren't possible, then the API call wouldn't be there. Therefore, I'm believing that I'm missing something when creating the socket. Here's what I'm currently doing... 1. Create a TCP socket (AF_INET, SOCK_STREAM, protocol of 0) 2. If I'm binding the socket to a predefined port, I use setsockopt() with the SO_REUSEADDR. Otherwise it doesn't matter. 3. Bind the socket to a port (or 0 to let the network library pick one), using the address INADDR_ANY. 4. Start listening on the socket, passing a value of 5 (maybe this is it?) 5. If I need to get the port number, I use getsockname() on the socket ----------------------------------------------------------------------- Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator We are born naked, wet and hungry... then things get worse. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
