select() max sockets

前端 未结 4 1728
感动是毒
感动是毒 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:10

    You don't say what OS you're using, but for most, if you want to use file descriptors above 1024 with select, you can #define FD_SETSIZE to be a larger number BEFORE #including sys/socket.h. Unfortunately, this doesn't work on Linux.

提交回复
热议问题