GCS
0.2.3
|
Class encapsulating struct addrinfo. More...
#include <gu_resolver.hpp>
Public Member Functions | |
Addrinfo (const addrinfo &ai) | |
Addrinfo (const Addrinfo &ai) | |
Addrinfo (const Addrinfo &ai, const Sockaddr &sa) | |
~Addrinfo () | |
int | get_family () const |
int | get_socktype () const |
int | get_protocol () const |
socklen_t | get_addrlen () const |
Sockaddr | get_addr () const |
std::string | to_string () const |
Class encapsulating struct addrinfo.
Class encapsulating struct addrinfo and providing interface to access addrinfo fields.
gu::net::Addrinfo::Addrinfo | ( | const addrinfo & | ai | ) |
Default constructor.
ai | Const reference to addrinfo struct |
gu::net::Addrinfo::Addrinfo | ( | const Addrinfo & | ai | ) |
Copy costructor.
ai | Const reference to Addrinfo object to copy |
gu::net::Addrinfo::~Addrinfo | ( | ) |
Destructor.
|
inline |
|
inline |
Get length of associated sockaddr struct
|
inline |
Get address family, AF_INET, AF_INET6 etc.
|
inline |
Get protocol.
|
inline |
Get socket type, SOCK_STREAM, SOCK_DGRAM etc
std::string gu::net::Addrinfo::to_string | ( | ) | const |
Get string representation of the addrinfo.