listen/select and then accept pattern not working?

Karel Gardas kgardas at objectsecurity.com
Fri Jan 14 18:13:21 UTC 2005


Hello,

before going into deep debugging I would like to ask here if there is
anybody here using select-based server on RTEMS, where server will not use
blocking accept, but rather just listen on specified port (socket) and
pass listening fd to the select and when someone is going to connect, it
then pass changed fd to the accept. So the sequence of commands done on
socket is:

socket -> bind -> listen -> select (loop with timeout) -<someone is going
to open connection>--> accept.

My problem is that select does not report activity on listening socket.
Anybody has already seen this?

Thanks a lot,
Karel
PS: Tested on 4-6-branch with its recommended tool-chain for pc386 BSP
running inside Qemu emulator
--
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com




More information about the users mailing list