Thread: nonblocking sockets - select approach

  1. #1
    Registered User
    Join Date
    May 2006

    nonblocking sockets - select approach


    Im working on a program that will have to do connections (client), and I know it is much better to use one thread with nonblocking sockets instead of 100.. Im doing it with c++, and I wonder if there are any better approaches since select() function has limitations on windows (I think it can only process about 60 sockets).. What would be the best approach for this? Maybe consider using some libaries? Or would it be better to just write my own dynamic fdset of sockets?

    Thanks for help

  2. #2
    Registered User
    Join Date
    Nov 2001
    robust winsock io models are limited to 64 sockets each thread, except iocp. you have two choices: multiple threads or iocp.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  2. program structure with select sockets
    By n3v in forum Networking/Device Communication
    Replies: 9
    Last Post: 06-03-2006, 06:34 AM
  3. multiple UDP sockets with select()
    By nkhambal in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-17-2006, 07:36 PM
  4. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  5. Sockets - select()
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 08-28-2001, 06:22 AM