|
R-Type
Distributed multiplayer game engine in C++
|
Interface representing a network address (IP + port). More...
#include <IAddress.hpp>


Public Member Functions | |
| virtual | ~IAddress ()=default |
| virtual std::string | getHost () const =0 |
| Get the hostname or IP address as a string. | |
| virtual uint16_t | getPort () const =0 |
| Get the port number. | |
| virtual void | setHost (const std::string &host)=0 |
| Set the hostname or IP address. | |
| virtual void | setPort (uint16_t port)=0 |
| Set the port number. | |
Interface representing a network address (IP + port).
IAddress abstracts away the underlying network address representation, allowing the backend (ENet, ASIO, etc.) to be swapped without impacting client or server code.
Definition at line 21 of file IAddress.hpp.
|
virtualdefault |
|
pure virtual |
Get the hostname or IP address as a string.
Implemented in ENetAddressWrapper.
|
pure virtual |
|
pure virtual |
Set the hostname or IP address.
| host | The hostname or IP address string. |
Implemented in ENetAddressWrapper.
|
pure virtual |