C Board  

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

Reply
 
LinkBack Thread Tools Display Modes
Old 11-09-2006, 08:47 AM   #1
l2u
Registered User
 
Join Date: May 2006
Posts: 630
server on wins

Hello


Im working on a huge server on windows and im not sure what approach for multiclients should I use.. I know multithreading is not good, so I've been using non-blocking sockets until now (1 thread), which has limitation but this can be easily changed..

I wondered what do you guys think about IOCP framework on windows? It runs more threads to handle all connections, not one for each.. Is it better than select() method using nonblocking sockets? If not, why so?

Thanks for answers
l2u is offline   Reply With Quote
Old 11-11-2006, 04:41 PM   #2
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
Personally, I don't see what's the big idea to use Threads, just keep them under control.
Now, non-blocking sockets are the real bad idea, select() should have been your first option.

You should be able to create a server that will be able to talk to multiple users using select(), depends what do you want the server to send and receive.
Never the less, if you're planning on making a Windows application, you WILL block the windows main loop, and by that make the window act as if it's no responding, there isn't much you can do you to avoid multi-threading, at the very least, you will have to use one thread for the windows loop and the other for the server itself.

Good luck.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
server client application - (i really need your help) sarahnetworking C Programming 3 03-01-2008 10:54 PM
Server Architecture coder8137 Networking/Device Communication 2 01-29-2008 11:21 PM
Where's the EPIPE signal? marc.andrysco Networking/Device Communication 0 12-23-2006 08:04 PM
IE 6 status bar DavidP Tech Board 15 10-23-2002 05:31 PM
socket question Unregistered C Programming 3 07-19-2002 01:54 PM


All times are GMT -6. The time now is 07:07 AM.


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