i'm working on a chat massenger, in my program i've written two threads as follows. i'm facing problem with there working. here is the main function of the program
int main()
{
char ipAddress[20];
getIp(ipAddress);
sf::IpAddress ip(ipAddress);
sf::TcpSocket *socket = new sf::TcpSocket;
sf::Mutex mutex;
bool done = false;