VideoTools
|
A derivation of GNet::Request used for hostname lookup requests. More...
#include <grequest.h>
Public Member Functions | |
HostRequest (std::string host_name, HWND hwnd, unsigned msg) | |
Constructor. | |
Address | result () const |
Returns the resolved address with a zero port number. | |
std::string | fqdn () const |
Returns the fully-qualified canonical hostname, if available. More... | |
Public Member Functions inherited from GNet::Request | |
virtual | ~Request () |
Virtual destructor. More... | |
bool | valid () const |
Returns true if the constructor initiated a request properly. More... | |
std::string | reason () const |
Returns the failure reason if valid() or onMessage() returned false. More... | |
bool | onMessage (WPARAM wparam, LPARAM lparam) |
To be called when the request has been completed. More... | |
Additional Inherited Members | |
Protected Types inherited from GNet::Request | |
enum | { magic = 968 } |
Protected Member Functions inherited from GNet::Request | |
Request (bool host) | |
Constructor. More... | |
Protected Attributes inherited from GNet::Request | |
int | m_magic |
int | m_error |
HANDLE | m_handle |
char | m_buffer [MAXGETHOSTSTRUCT] |
bool | m_host |
bool | m_done |
bool | m_numeric |
GNet::Address | m_address |
A derivation of GNet::Request used for hostname lookup requests.
Definition at line 88 of file grequest.h.
std::string GNet::HostRequest::fqdn | ( | ) | const |
Returns the fully-qualified canonical hostname, if available.