Inheritance diagram for Ux::SockAddr:
Definition at line 76 of file uxsocket.hpp.
Public Member Functions | |
SockAddr (void) | |
const struct sockaddr * | get_addr (void) const |
sockaddr * | get_addr (void) |
socklen_t | get_len (void) const |
socklen_t * | get_len_ptr (void) |
void | set_len (socklen_t len) |
void | set_protocol (int protocol) |
int | get_protocol (void) |
void | set_server (const char *nodename, const char *servname="80") |
Static Public Member Functions | |
void | getaddrinfo (const char *nodename, const char *servname, const struct addrinfo *hint, struct addrinfo **infop) |
void | getaddrinfo (const char *nodename, const char *servname, int family, int type, int flags, struct addrinfo **infop) |
void | freeaddrinfo (struct addrinfo *infop) |
void | getnameinfo (const struct sockaddr *sa, socklen_t sa_len, char *nodename, socklen_t nodelen, char *servname, socklen_t servlen, unsigned flags) |
Protected Attributes | |
sockaddr_storage | sa_storage |
socklen_t | sa_len |
int | sa_protocol |
|
Definition at line 83 of file uxsocket.hpp. |
|
Definition at line 104 of file uxsocket.hpp. |
|
Definition at line 88 of file uxsocket.hpp. |
|
Definition at line 86 of file uxsocket.hpp. Referenced by Ux::Socket::accept(), Ux::Socket::bind(), Ux::Socket::connect(), Ux::Socket::getpeername(), and Ux::Socket::getsockname(). |
|
Definition at line 90 of file uxsocket.hpp. Referenced by Ux::Socket::bind(), and Ux::Socket::connect(). |
|
Definition at line 92 of file uxsocket.hpp. Referenced by Ux::Socket::accept(), Ux::Socket::getpeername(), and Ux::Socket::getsockname(). |
|
Definition at line 98 of file uxsocket.hpp. |
|
Calls getaddrinfo, but doesn't require setting up a separate hint structure. Definition at line 142 of file uxsocket.cpp. References addrinfo::ai_family, addrinfo::ai_flags, addrinfo::ai_socktype, and getaddrinfo(). |
|
Calls getaddrinfo. Definition at line 130 of file uxsocket.cpp. References EC_EAI. Referenced by getaddrinfo(), and set_server(). |
|
Calls getnameinfo. Definition at line 170 of file uxsocket.cpp. References EC_EAI. |
|
Definition at line 94 of file uxsocket.hpp. Referenced by Ux::SockAddrIn::set(), Ux::SockAddrUn::set(), and set_server(). |
|
Definition at line 96 of file uxsocket.hpp. Referenced by set_server(). |
|
Calls getaddrinfo and then sets up the socket address from a nodename and servname (port). Definition at line 157 of file uxsocket.cpp. References addrinfo::ai_addr, addrinfo::ai_addrlen, addrinfo::ai_protocol, getaddrinfo(), sa_storage, set_len(), and set_protocol(). |
|
Definition at line 79 of file uxsocket.hpp. |
|
Definition at line 80 of file uxsocket.hpp. |
|
Definition at line 78 of file uxsocket.hpp. Referenced by set_server(). |