in socket programming, can accept() the same listening socket in multi-process(thread)?

Posted by jon on Stack Overflow See other posts from Stack Overflow or by jon
Published on 2010-04-15T01:45:17Z Indexed on 2010/04/15 1:53 UTC
Read the original article Hit count: 291

Filed under:
|

i.e.

  1. open a listening socket in parent process
  2. call epoll_wait(listening_socket) in child1,child2,child3....
  3. call accept in each child if there is connection request

© Stack Overflow or respective owner

Related posts about socket

Related posts about accept