Quantcast
Channel: Winsock recv() blocking clients app - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer 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


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 Article

Browsing latest articles
Browse All 2 View Live


Latest Images