wavelength 1.0.0
Loading...
Searching...
No Matches
dodnstask.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "netflow/nettask.h"
5
7
15class DoDNSTask : public NetTask, public MsgSink {
16public:
23 ~DoDNSTask() override = default;
24
33 bool DispatchPriv(Message *pMsg) override;
34
35protected:
42 void OnStart() override;
43
50 void OnStop() override;
51
52private:
61 bool OnResult(InetDNSLookupResultMsg *pMsg);
62};
Step that looks up the address of the lobby server.
Definition dodnstask.h:15
void OnStart() override
Request the lookup of LobbyRT::mServerName.
void OnStop() override
Clear the pending lookup.
~DoDNSTask() override=default
Destroy the object.
bool DispatchPriv(Message *pMsg) override
Pass an InetDNSLookupResultMsg to OnResult().
Message that reports the outcome of NetInet::LookupHost().
Definition inetdnslookupresultmsg.h:13
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24