Thank you for your answer.
I tried like this:
sf::TcpSocket socket;
sf::Socket::Status = socket.connect("google.com",80);
if(status!=sf::Socket::Done)
return false;
return true;
I don't care about the time out, it can also take some seconds (or i can set a notblock socket).
The problem is the same, when i turn off my wifi,
the process stucks at socket.connect(..).
UPDATEI found out that the problem occurs when or the wifi module is off or when it is not connected to a wireless network.
So by now i need a is connected to a network, not to a server. Any ideas?
Thank you!
Alessandro Amedei, Florence.