using winsock array with different ports how do i free the winsock ctrl from which my client has disconnected and reconnect that client to that same port
Printable View
using winsock array with different ports how do i free the winsock ctrl from which my client has disconnected and reconnect that client to that same port
You have your main winsock ws(0) which is listening and accepting the connections. You must not close it when a connection arrives, just accept the connection on a newly loaded socket and let it stay in Listen mode.