I am in the process of creating a server using C++ and TCPIP. I have created a socket, bound it to a port, set it to list and then accept dynamically created multiple connections (created as new sockets).
How can I find out / be notified that a connection has been disconnected at the client end so that I can clean up the sockets?
Goose