|
-
February 21st, 2006, 02:40 AM
#1
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 
-
February 21st, 2006, 05:25 AM
#2
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!
-
February 23rd, 2006, 07:19 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|