![]() ![]() I think 64 is the default max for a fd_set. Where say i have 1 thread watching (64) diffrent client sockfd. Or is it best to use a combination of select() and threads. Or is there a better way to do it without threads or the use of select(). Is there a easy way in windows to poll a sockfd for if it has information ready to be recv() or someone to be accept()ed, or is it better for me to make a new thread for each client that connects, and inside those threads i have a recv() waiting for data from the clients?Īs well as a thread for the listen sockfd. ![]() What i'm talking about, is blocking and non blocking. I want to know what is the best way to code a server with multi client support. I did ask this question in my other topic "Trouble with sockets" but no one responded. Ive been off and on for the past year at least trying to find the best way to program a TCP server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |