select() max sockets

前端 未结 4 1727
感动是毒
感动是毒 2021-01-13 10:43

Just more asynchronous stuff!

Alright, so I now have a working asynchronous socket program for my main chatting application, and it\'s working really well! However I

4条回答
  •  鱼传尺愫
    2021-01-13 10:54

    If you are programming under a Posix compliant system, you should be able to use the poll() function instead of select() and this will do away with the limit that you mention. Alternatively, you can call select() multiple times in succession but be certain to use a relatively short timeout.

提交回复
热议问题