Hello, i'm writing a small multiplayer game of SFML only use network. I am sure that the client has closed the port used and was always closed. At first, when I was studying SFML Network, I used a TCP connection. It worked. The server receives a message from a client, and the client received from the server. But when I moved to the UDP, the server is also received reports, however, the client from the server - no. I know what is to blame for a closed port on the client side.
When SFML server sends the packet to the UDP, back comes a message that returns the status of sf::packet::status::Disconnected. SFML's documentation said that the "The TCP socket has been disconnected".
this status is returned even if my game is not active at the client.
Please explain why this is happening and how to get around using the UDP connection. Many games use UDP connection, but the client receives information from the server when the closed ports. How???