Browsing index pages (2 articles)
↧
Winsock recv() blocking clients app
I'm trying to create simple C++ server-client application, which allows multiple users to connect to server. The problem is that after creating new thread for each client, recv function started to...
View ArticleAnswer by Remy Lebeau for Winsock recv() blocking clients app
All of your client threads are receiving a pointer to the same SOCKET variable, so they are going to trample on each other. You need to pass a copy of the SOCKET to each thread instead. You are also...
View Article
Browsing index pages (2 articles)