27 : mResult(nResult), mAddress(pszAddress) {
36 void *
operator new(
size_t nSize) {
37 return PoolMemAlloc(
static_cast<int>(nSize),
"InetDNSLookupResultMsg", 0);
45 void operator delete(
void *pBlock) {
73 return "InetDNSLookupResultMsg";
int GetResult() const
Definition inetdnslookupresultmsg.h:91
void PrintExtra(PrnStream &stream) const override
Write the result and the address.
InetDNSLookupResultMsg(int nResult, const char *pszAddress)
Construct a result.
Definition inetdnslookupresultmsg.h:26
int Type() override
Report this message's registered identity.
Definition inetdnslookupresultmsg.h:63
Message * Clone() override
Produce a heap copy of this message, which points at the same address text.
Definition inetdnslookupresultmsg.h:54
const char * GetAddress() const
Definition inetdnslookupresultmsg.h:86
const char * GetName() const override
Report this message's class name.
Definition inetdnslookupresultmsg.h:72
static constexpr int kResultFailed
The value of mResult after a failed lookup.
Definition inetdnslookupresultmsg.h:16
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Text output stream.
Definition prnstream.h:16
int g_nInetDNSLookupResultMsgType
Identity that InetDNSLookupResultMsg::Type() reports.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.