Thread: server on wins

  1. #1
    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

  2. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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