12 #include "../OSSupport/Network.h"
37 virtual void OnError(
int a_ErrorCode,
const AString & a_ErrorMsg)
override;
virtual void OnError(int a_ErrorCode, const AString &a_ErrorMsg) override
Called when an error is encountered while resolving.
AString m_Query
The query used to start the lookup (either hostname or IP).
cLuaState::cTableRefPtr m_Callbacks
The Lua table that holds the callbacks to be invoked.
virtual void OnNameResolved(const AString &a_Name, const AString &a_IP) override
Called when the hostname is successfully resolved into an IP address.
cLuaNameLookup(const AString &a_Query, cLuaState::cTableRefPtr &&a_Callbacks)
Creates a new instance of the lookup callbacks for the specified query, using the callbacks that are ...
virtual void OnFinished(void) override
Called when all the addresses resolved have been reported via the OnNameResolved() callback.
std::unique_ptr< cTableRef > cTableRefPtr
Callbacks used when resolving names to IPs.