Using CAsyncSocket as a server.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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?




.