I have just recently learnt how to do socket programming in C#. I know how to do both synchronous and asynchronous sockets. Problem is I'm not sure how to accept multiple clients. There is code in the constructor of my main program to start listening on a specified port. Once a client connects to that port, the socket now handles that client only. Right?
I should create an event that creates a new socket every time the listening one gets connected to a client. And another event when a client disconnects.Right?
Any advice on how to implement this? Or any links to resources that I should read?
Thanks in advance.