1
Network / Test if TcpSocket exists
« on: December 04, 2014, 09:50:34 pm »
Hello,
i want to write a little Chat. I have the class user which contain a sf::TcpSocket. If a user connect the i set the TcpSocket. But if the user doesnt already connect and i try to send him a message my programm crashes. Can i check if the Socket is valid?
Thanks for answers
i want to write a little Chat. I have the class user which contain a sf::TcpSocket. If a user connect the i set the TcpSocket. But if the user doesnt already connect and i try to send him a message my programm crashes. Can i check if the Socket is valid?
Thanks for answers