CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    India
    Posts
    238

    client server modal basic problem!

    hi, all
    i m trying to code Client server model in C++.
    Do we need a thread to handle a client means per client a thread is to be generated. Is there any other way so that we can handle more numbers of clients with some limited threads?
    Virender Chauhan
    INDIA
    ---------------------
    RATE THE POST IF I HELPED YOU

  2. #2
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    1,194

    Re: client server modal basic problem!

    You don't need a new thread for each client. But if you use synchronous functions you should create one extra thread for the whole network communication, because otherwise your main thread will be blocked.
    Please don't forget to rate users who helped you!

  3. #3
    Join Date
    Dec 2002
    Location
    St.Louis MO, USA
    Posts
    672

    Re: client server modal basic problem!

    Further more Winsock offers some interesting I/O models that help applications manage communication on one or more sockets at a time in an asynchronous fashion: select, WSAAsyncSelect, WSAEventSelect, overlapped I/O, and completion port. Search Information regarding these models on Internet and in MSDN it may helps u.
    A Person who is polite is given goodness and a person who is away from Politeness is away from Goodness.

    NAUMAAN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured