C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 09-30-2006, 04:08 PM   #1
l2u
Registered User
 
Join Date: May 2006
Posts: 630
select() question

Hello.. I was wondering about different select() approach in my multi-client application which will use a lot of sockets at once..

So instead of setting X sockets to fd_set (which has limitation 64 sockets on wins) and then calling select() for this fd_set, I made a class for each socket (every socket with own fd_set) and when I want to check if socket is readable/writeable/.. I just call select on fd_set of each socket.. This would mean I would have to call select() more times (for each socket) not only once for all sockets.. Would this slow down my program? It would make bypass fd_set limitation but would it affect the application speed?

Thanks for answers

Kind regards
l2u is offline   Reply With Quote
Old 09-30-2006, 08:00 PM   #2
Yes, my avatar is stolen
 
anonytmouse's Avatar
 
Join Date: Dec 2002
Posts: 2,544
Yes, it would slow down your program. The 64 socket limit can be increased.
anonytmouse is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
another do while question kbpsu C++ Programming 3 03-23-2009 12:14 PM
opengl DC question SAMSAM Game Programming 6 02-26-2003 09:22 PM
Question on Select Case? Wescb C++ Programming 8 12-11-2002 11:11 PM
Directional Keys - Useing in Console RoD C++ Programming 38 10-06-2002 04:42 PM
scandir select function dsl24 C Programming 3 04-12-2002 10:58 AM


All times are GMT -6. The time now is 08:50 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22