Class endstone::SocketAddress¶
ClassList > endstone > SocketAddress
Represents an IP Socket Address (hostname + port number).
#include <endstone/util/socket_address.h>
Public Functions¶
Type | Name |
---|---|
SocketAddress () = default |
|
SocketAddress (std::string hostname, std::uint32_t port) |
|
const std::string & | getHostname () const |
std::uint32_t | getPort () const |
Public Functions Documentation¶
function SocketAddress [½]¶
function SocketAddress [2/2]¶
function getHostname¶
Gets the hostname.
Returns:
The hostname of this socket address
function getPort¶
Gets the port number.
Returns:
The port number of this socket address
The documentation for this class was generated from the following file include/endstone/util/socket_address.h