|
join 1.0
lightweight network framework library
|
basic internet endpoint class. More...
#include <endpoint.hpp>


Public Member Functions | |
| constexpr | BasicInternetEndpoint () noexcept |
| default constructor. | |
| BasicInternetEndpoint (const struct sockaddr *addr, socklen_t len) noexcept | |
| create the endpoint instance. | |
| BasicInternetEndpoint (const IpAddress &ip, uint16_t port=0) noexcept | |
| create the endpoint instance. | |
| BasicInternetEndpoint (const std::string &ip, uint16_t port=0) | |
| create the endpoint instance. | |
| BasicInternetEndpoint (const char *ip, uint16_t port=0) | |
| create the endpoint instance. | |
| BasicInternetEndpoint (const Protocol &protocol, uint16_t port=0) noexcept | |
| create the endpoint instance. | |
| void | hostname (const std::string &hostname) noexcept |
| set endpoint hostname. | |
| const std::string & | hostname () const noexcept |
| get the endpoint hostname. | |
| void | ip (const IpAddress &ip) noexcept |
| set endpoint IP address. | |
| IpAddress | ip () const noexcept |
| get endpoint IP address. | |
| void | port (uint16_t p) noexcept |
| set endpoint port number. | |
| uint16_t | port () const noexcept |
| get endpoint port number. | |
| Protocol | protocol () const noexcept |
| get endpoint protocol. | |
| socklen_t | length () const noexcept |
| get socket address length. | |
| void | device (const std::string &dev) noexcept |
| set endpoint device name. | |
| std::string | device () const |
| get endpoint device name. | |
Public Member Functions inherited from join::BasicEndpoint< Protocol > | |
| constexpr | BasicEndpoint () noexcept |
| default constructor. | |
| BasicEndpoint (const struct sockaddr *addr, socklen_t len) noexcept | |
| create instance using socket address. | |
| struct sockaddr * | addr () noexcept |
| get socket address. | |
| const struct sockaddr * | addr () const noexcept |
| get socket address. | |
Protected Attributes | |
| std::string | _hostname |
| endpoint hostname. | |
Protected Attributes inherited from join::BasicEndpoint< Protocol > | |
| struct sockaddr_storage | _addr = {} |
| socket address storage. | |
basic internet endpoint class.
|
inlineconstexprnoexcept |
default constructor.
|
inlinenoexcept |
create the endpoint instance.
| addr | socket address. |
|
inlinenoexcept |
create the endpoint instance.
| ip | endpoint IP address. |
| port | endpoint port number. |
|
inline |
create the endpoint instance.
| ip | endpoint IP address. |
| port | endpoint port number. |
|
inline |
create the endpoint instance.
| ip | endpoint IP address. |
| port | endpoint port number. |
|
inlinenoexcept |
create the endpoint instance.
| protocol | endpoint protocol. |
| port | endpoint port number. |
|
inline |
get endpoint device name.
|
inlinenoexcept |
set endpoint device name.
| dev | device name to set. |
|
inlinenoexcept |
get the endpoint hostname.
|
inlinenoexcept |
set endpoint hostname.
| hostname | hostname to set. |
|
inlinenoexcept |
get endpoint IP address.
|
inlinenoexcept |
set endpoint IP address.
| ip | ip address to set. |
|
inlinenoexcept |
get socket address length.
|
inlinenoexcept |
get endpoint port number.
|
inlinenoexcept |
set endpoint port number.
| p | port number to set. |
|
inlinenoexcept |
get endpoint protocol.
|
protected |
endpoint hostname.