Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Holds information about an in-progress IP-to-Hostname lookup. More...
#include <IPLookup.h>
Static Public Member Functions | |
static void | Lookup (const AString &a_IP, cNetwork::cResolveNameCallbacksPtr a_Callbacks) |
Creates a lookup object and schedules the lookup. More... | |
Protected Member Functions | |
void | Callback (int a_Result, const char *a_Address) |
Callback that is called by LibEvent when there's an event for the request. More... | |
cIPLookup (const AString &a_IP, cNetwork::cResolveNameCallbacksPtr a_Callbacks) | |
Creates the lookup object. More... | |
Protected Attributes | |
cNetwork::cResolveNameCallbacksPtr | m_Callbacks |
The callbacks to call for resolved names / errors. More... | |
AString | m_IP |
The IP that was queried (needed for the callbacks). More... | |
Holds information about an in-progress IP-to-Hostname lookup.
Definition at line 21 of file IPLookup.h.
|
protected |
Creates the lookup object.
Doesn't start the lookup yet.
Definition at line 19 of file IPLookup.cpp.
|
protected |
Callback that is called by LibEvent when there's an event for the request.
Definition at line 68 of file IPLookup.cpp.
|
static |
Creates a lookup object and schedules the lookup.
Definition at line 30 of file IPLookup.cpp.
|
protected |
The callbacks to call for resolved names / errors.
Definition at line 31 of file IPLookup.h.
|
protected |
The IP that was queried (needed for the callbacks).
Definition at line 34 of file IPLookup.h.