Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn select return when a listening socket has a pending connection?

0
Posted

Why doesn select return when a listening socket has a pending connection?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123