Using CAsyncSocket as a server.
- From: "TonyG" <TonyG@xxxxxxxx>
- Date: Wed, 18 May 2005 12:04:06 GMT
I have used CAsyncSocket a bunch of times as a client. Now I want to use it
as a server.
My plan is make a new class using CAsyncSocket as a base. Then I will create
one instance of my class and listen on the port I need. When someone
connects to me I will start sending data using that instance of the class.
Then immediately I will create a second instance of my CAsyncSocket based
class and I will listen on the same port for someone else to connect. If
someone connects I will start sending data using that instance. I will then
create a third instance and listen again.
Is this the general way that I should be doing this?
.
- Follow-Ups:
- Re: Using CAsyncSocket as a server.
- From: Scott McPhillips [MVP]
- Re: Using CAsyncSocket as a server.
- Prev by Date: RE: Exception handling best practices
- Next by Date: Strange CListCtrl problem
- Previous by thread: Opening .xml file with my application
- Next by thread: Re: Using CAsyncSocket as a server.
- Index(es):