21 [[nodiscard]] std::string
getHost()
const override;
22 [[nodiscard]] uint16_t
getPort()
const override;
23 void setHost(
const std::string &hostname)
override;
24 void setPort(uint16_t port)
override;
void setHost(const std::string &hostname) override
Set the hostname or IP address.
std::string getHost() const override
Get the hostname or IP address as a string.
ENetAddressWrapper & operator=(const ENetAddressWrapper &other)
uint16_t getPort() const override
Get the port number.
void setPort(uint16_t port) override
Set the port number.
const ENetAddress & getNativeAddress() const
Interface representing a network address (IP + port).