Hello everybody,
I develop network application for PalmOS 4.0 and higher. For more frendly UI I want to use non-blocking socket calls. Here are my steps: 1) Create socket 2) make socket nonblocking NetLibSocketOptionSet(netSocketOptSockNonBlocking) 3) connect socket - NetLibSocketConnect - got netErrWouldBlock error 4) call NetLibSelect(&read, &write, &except) 5) analize result of NetLibSelect
Well, we took a somewhat different approach: use nonblocking sockets, but don't use NetLibSelect(). I did some experimentation with select(), and never got it to do anything useful. Instead, we take advantage of netErrWouldBlock returns from socket read and write calls to look for user input. It took much fiddling to get the timers tuned right, remaining reasonably responsive to user actions while not bogging down the data transfer. Our main test configuration was TCP/IP over a standard cell phone connection (a Kyocera 6035 Smartphone, Palm OS 3.5).
If details of this approach are of interest, let me know, and I can send you more.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
