Network code documentation for my turn-based game 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ClientNetworkManager Class Referencefinal

ClientNetworkManager is the implementation of the ClientNetworkInterface. It manages the communications with the server and owns the client's socket. More...

#include <client_network_manager.h>

Inheritance diagram for ClientNetworkManager:
ClientNetworkInterface

Public Member Functions

 ClientNetworkManager () noexcept=default
 
 ClientNetworkManager (ClientNetworkManager &&other) noexcept=delete
 
ClientNetworkManageroperator= (ClientNetworkManager &&other) noexcept=delete
 
 ClientNetworkManager (const ClientNetworkManager &other) noexcept=delete
 
ClientNetworkManageroperator= (const ClientNetworkManager &other) noexcept=delete
 
 ~ClientNetworkManager () noexcept override=default
 
void SendPacket (sf::Packet &packet) noexcept override
 
PacketType ReceivePacket (sf::Packet &packet) noexcept override
 
ReturnStatus ConnectToServer (const sf::IpAddress &remote_address, unsigned short remote_port, bool blocking=true) noexcept
 
void DisconnectFromServer () noexcept
 
sf::IpAddress remote_address () const noexcept
 
unsigned short remote_port () const noexcept
 
- Public Member Functions inherited from ClientNetworkInterface
 ClientNetworkInterface () noexcept=default
 
 ClientNetworkInterface (ClientNetworkInterface &&other) noexcept=default
 
ClientNetworkInterfaceoperator= (ClientNetworkInterface &&other) noexcept=default
 
 ClientNetworkInterface (const ClientNetworkInterface &other) noexcept=default
 
ClientNetworkInterfaceoperator= (const ClientNetworkInterface &other) noexcept=default
 
virtual ~ClientNetworkInterface () noexcept=default
 

Detailed Description

ClientNetworkManager is the implementation of the ClientNetworkInterface. It manages the communications with the server and owns the client's socket.

Constructor & Destructor Documentation

◆ ClientNetworkManager() [1/3]

ClientNetworkManager::ClientNetworkManager ( )
defaultnoexcept

◆ ClientNetworkManager() [2/3]

ClientNetworkManager::ClientNetworkManager ( ClientNetworkManager && other)
deletenoexcept

◆ ClientNetworkManager() [3/3]

ClientNetworkManager::ClientNetworkManager ( const ClientNetworkManager & other)
deletenoexcept

◆ ~ClientNetworkManager()

ClientNetworkManager::~ClientNetworkManager ( )
overridedefaultnoexcept

Member Function Documentation

◆ ConnectToServer()

ReturnStatus ClientNetworkManager::ConnectToServer ( const sf::IpAddress & remote_address,
unsigned short remote_port,
bool blocking = true )
noexcept

◆ DisconnectFromServer()

void ClientNetworkManager::DisconnectFromServer ( )
noexcept

◆ operator=() [1/2]

ClientNetworkManager & ClientNetworkManager::operator= ( ClientNetworkManager && other)
deletenoexcept

◆ operator=() [2/2]

ClientNetworkManager & ClientNetworkManager::operator= ( const ClientNetworkManager & other)
deletenoexcept

◆ ReceivePacket()

PacketType ClientNetworkManager::ReceivePacket ( sf::Packet & packet)
overridevirtualnoexcept

◆ remote_address()

sf::IpAddress ClientNetworkManager::remote_address ( ) const
inlinenoexcept

◆ remote_port()

unsigned short ClientNetworkManager::remote_port ( ) const
inlinenoexcept

◆ SendPacket()

void ClientNetworkManager::SendPacket ( sf::Packet & packet)
overridevirtualnoexcept

The documentation for this class was generated from the following file: