|
uvw
2.10.0
|
The GetNameInfoReq request. More...
#include <dns.h>


Public Member Functions | |
| 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... | |
Public Member Functions inherited from uvw::Request< GetNameInfoReq, uv_getnameinfo_t > | |
| bool | cancel () |
| Cancels a pending request. More... | |
| std::size_t | size () const noexcept |
| Returns the size of the underlying request type. More... | |
Public Member Functions inherited from uvw::Resource< T, U > | |
| 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... | |
Public Member Functions inherited from uvw::UnderlyingType< T, U > | |
| 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... | |
Public Member Functions inherited from uvw::Emitter< T > | |
| 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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from uvw::UnderlyingType< T, U > | |
| template<typename... Args> | |
| static std::shared_ptr< T > | create (Args &&... args) |
| Creates a new resource of the given type. 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.
| void uvw::GetNameInfoReq::nameInfo | ( | Addr | addr, |
| int | flags = 0 |
||
| ) |
Async getnameinfo.
| addr | A valid instance of Addr. |
| flags | Optional flags that modify the behavior of getnameinfo. |
| void uvw::GetNameInfoReq::nameInfo | ( | const sockaddr & | addr, |
| int | flags = 0 |
||
| ) |
Async getnameinfo.
| addr | Initialized sockaddr_in or sockaddr_in6 data structure. |
| flags | Optional flags that modify the behavior of getnameinfo. |
| void uvw::GetNameInfoReq::nameInfo | ( | const std::string & | ip, |
| unsigned int | port, | ||
| int | flags = 0 |
||
| ) |
Async getnameinfo.
| ip | A valid IP address. |
| port | A valid port number. |
| flags | Optional flags that modify the behavior of getnameinfo. |
| std::pair<bool, std::pair<const char *, const char *> > uvw::GetNameInfoReq::nameInfoSync | ( | Addr | addr, |
| int | flags = 0 |
||
| ) |
Sync getnameinfo.
| addr | A valid instance of Addr. |
| flags | Optional flags that modify the behavior of getnameinfo. |
std::pair composed as it follows:std::pair composed as it follows:const char * containing a valid hostname.const char * containing a valid service name. | std::pair<bool, std::pair<const char *, const char *> > uvw::GetNameInfoReq::nameInfoSync | ( | const sockaddr & | addr, |
| int | flags = 0 |
||
| ) |
Sync getnameinfo.
| addr | Initialized sockaddr_in or sockaddr_in6 data structure. |
| flags | Optional flags that modify the behavior of getnameinfo. |
std::pair composed as it follows:std::pair composed as it follows:const char * containing a valid hostname.const char * containing a valid service name. | std::pair<bool, std::pair<const char *, const char *> > uvw::GetNameInfoReq::nameInfoSync | ( | const std::string & | ip, |
| unsigned int | port, | ||
| int | flags = 0 |
||
| ) |
Sync getnameinfo.
| ip | A valid IP address. |
| port | A valid port number. |
| flags | Optional flags that modify the behavior of getnameinfo. |
std::pair composed as it follows:std::pair composed as it follows:const char * containing a valid hostname.const char * containing a valid service name.