select() max sockets

前端 未结 4 1787
感动是毒
感动是毒 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 11:13

    For really large numbers of sockets look into using a library like libevent.

    The library can abstract several OS-specific advanced features like /dev/poll, kqueue, epoll, and event ports. With these you can handle really vast numbers of connections.

提交回复
热议问题