Why doesn select return when a listening socket has a pending connection?
Ans :- This is caused by a bug in the Palm OS software. The current implementation of the select call (NetLibSelect for non-Berkeley types) does not correctly detect that a listening socket has a pending connection. You can work around this problem to get the desired effect in a different way: use a timeout on the select call and the accept call. Using timeouts allows your code to spend most of its time in the select call, yet still respond to connection attempts reasonably quickly.