1
Network / Re: Issues with receiving
« on: April 18, 2016, 03:45:37 pm »I think the problem is that you are listening to incoming connections in client. Split the code in to server and client. In my opinion, in this case threads are overkill, put socket in non-blocking mode. Also in receive function, check if "socket1.receive(...) == sf::Socket::Done", because currently it is printing empty string all the time. I have modified your code a little. http://pastebin.com/DwqDjnE8
The reason i didn't put an if statement is because i thought that receiving was blocking. so it wouldn't continue running until it had actually received something.