![]() |
| | #1 |
| Registered User Join Date: May 2006
Posts: 630
| server on wins 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 | |
| | #2 |
| * Death to Visual Basic * 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |