Skip to Content
⚠ Under Construction
ReferenceC++ APISocketAddress

endstone::SocketAddress

Represents an IP Socket Address (hostname + port number).

Functions:

SocketAddress

SocketAddress() = default
SocketAddress(std::string hostname, std::uint32_t port)

getHostname

const std::string &getHostname() const

Gets the hostname.

Returns:

The hostname of this socket address

getPort

std::uint32_t getPort() const

Gets the port number.

Returns:

The port number of this socket address

Last updated on