6#include <SFML/Network.hpp>
27 bool blocking = true) noexcept;
32 return socket_.getRemoteAddress();
35 return socket_.getRemotePort();
39 sf::TcpSocket socket_{};
ClientNetworkInterface is an interface to communicates with a server.
Definition client_network_interface.h:8
ClientNetworkManager is the implementation of the ClientNetworkInterface. It manages the communicatio...
Definition client_network_manager.h:12
unsigned short remote_port() const noexcept
Definition client_network_manager.h:34
PacketType ReceivePacket(sf::Packet &packet) noexcept override
ClientNetworkManager() noexcept=default
sf::IpAddress remote_address() const noexcept
Definition client_network_manager.h:31
void DisconnectFromServer() noexcept
ReturnStatus ConnectToServer(const sf::IpAddress &remote_address, unsigned short remote_port, bool blocking=true) noexcept
void SendPacket(sf::Packet &packet) noexcept override
PacketType
Definition packet.h:7
ReturnStatus
Definition types.h:6