Skip to content

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 [½]

endstone::SocketAddress::SocketAddress () = default

function SocketAddress [2/2]

inline endstone::SocketAddress::SocketAddress (
    std::string hostname,
    std::uint32_t port
) 

function getHostname

inline const std::string & endstone::SocketAddress::getHostname () const

Gets the hostname.

Returns:

The hostname of this socket address


function getPort

inline std::uint32_t endstone::SocketAddress::getPort () const

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