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 1896 times)

0 Members and 3 Guests 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