Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: my tcpsocket keeps getting disconnected everytime i call recieve function  (Read 1895 times)

0 Members and 1 Guest are viewing this topic.

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
i dont know why client1.receive(message,sizeof(message),size) always returns sf::Socket::Disconnected

char message[] = "Someone has joined the game";
std::size_t size = 0;

can someone explain this to me