Original Post
I'm trying to add network on my game and it seems to work properly. I'm using server and client on the same game. I'm using winsock2 and are creating a windows application. But when a client disconnects, then the server and all the other clients hangs. I need a good way to tell if a client is active or if the server is disconnected. I'm using blocking sockets. The clients waits until they have received all data from the server. The server waits until it have received all data from every client.