Okay so, there is this sample code:
https://pastebin.com/1VWaxyifI can't get it working on my Gentoo Linux, tried to compile it with clang++, g++, nothing works.
My firewall is disabled and I have not encountered any problems like that earlier.
The situation is as follows:
I start the server.
server says: Listening, Accepting
I start the client.
client says: Connecting
And there it freezes. The client cannot connect. If I don't start the server at all:
client says: Client does not werk. Client end
So there is some kind of connection going on, but not really.
I asked on the IRC, people said it worked for them. My friend on Windows was also able to make the connection.
I have pinpointed the issue to be server side. I have no problems with this code:
http://www.linuxhowtos.org/data/6/server.chttp://www.linuxhowtos.org/data/6/client.cIt goes through the accepting phase successfully.
Now, the SFML client also connects to the C server provided earlier.
Seems like the issue is on server side, more precisely: the TcpListener::listen and/or TcpListener::accept.
It seems that this actually SFML's bug, even though only I experience that behavior.
I also tried to connect with the C client to SFML server. Did not work. Netcat connection neither.
I am using SFML from Gentoo's repositories, I also tried to use the site-provided libs, they didn't work.
I also compiled and installed SFML from the master branch on github. No luck either.
I have run out of ideas now. I am quite certain that this is a bug.