Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating porxyserver in vc++

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
ho a single socket at server can handle multiple requests comming from clients.
 
Hi

Use simply the CSocket class of MFC. This class allows an easy way to manage multiple transactions: the socket is in asynchronous mode to receive the notifications from the framework and turn to synchronous mode during the read (receive) and write (send) operations. So, almost all the boring job is done by this class, you can concentrate on your application.

Analyse the sample code from MSDN, it's great to fully understand the way CSocket works.

You could also use CAsyncSocket but this is much more difficult...

HTH

Thierry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top