|
void | nameInfo (const sockaddr &addr, int flags=0) |
| Async getnameinfo. More...
|
|
template<typename I = IPv4> |
void | nameInfo (const std::string &ip, unsigned int port, int flags=0) |
| Async getnameinfo. More...
|
|
template<typename I = IPv4> |
void | nameInfo (Addr addr, int flags=0) |
| Async getnameinfo. More...
|
|
std::pair< bool, std::pair< const char *, const char * > > | nameInfoSync (const sockaddr &addr, int flags=0) |
| Sync getnameinfo. More...
|
|
template<typename I = IPv4> |
std::pair< bool, std::pair< const char *, const char * > > | nameInfoSync (const std::string &ip, unsigned int port, int flags=0) |
| Sync getnameinfo. More...
|
|
template<typename I = IPv4> |
std::pair< bool, std::pair< const char *, const char * > > | nameInfoSync (Addr addr, int flags=0) |
| Sync getnameinfo. More...
|
|
bool | cancel () |
| Cancels a pending request. More...
|
|
std::size_t | size () const noexcept |
| Returns the size of the underlying request type. More...
|
|
template<typename R = void> |
std::shared_ptr< R > | data () const |
| Gets user-defined data. uvw won't use this field in any case. More...
|
|
void | data (std::shared_ptr< void > uData) |
| Sets arbitrary data. uvw won't use this field in any case. More...
|
|
Loop & | loop () const noexcept |
| Gets the loop from which the resource was originated. More...
|
|
const U * | raw () const noexcept |
| Gets the underlying raw data structure. More...
|
|
U * | raw () noexcept |
| Gets the underlying raw data structure. More...
|
|
template<typename E > |
Connection< E > | on (Listener< E > f) |
| Registers a long-lived listener with the event emitter. More...
|
|
template<typename E > |
Connection< E > | once (Listener< E > f) |
| Registers a short-lived listener with the event emitter. More...
|
|
template<typename E > |
void | erase (Connection< E > conn) noexcept |
| Disconnects a listener from the event emitter. More...
|
|
template<typename E > |
void | clear () noexcept |
| Disconnects all the listeners for the given event type.
|
|
void | clear () noexcept |
| Disconnects all the listeners.
|
|
template<typename E > |
bool | empty () const noexcept |
| Checks if there are listeners registered for the specific event. More...
|
|
bool | empty () const noexcept |
| Checks if there are listeners registered with the event emitter. More...
|
|
The GetNameInfoReq request.
Wrapper for getnameinfo.
It offers either asynchronous and synchronous access methods.
To create a GetNameInfoReq
through a Loop
, no arguments are required.
Definition at line 156 of file dns.h.