wavelength 1.0.0
Loading...
Searching...
No Matches
checkinettask.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 CheckInetTask : public NetTask, public MsgSink {
16public:
23 ~CheckInetTask() override = default;
24
33 bool DispatchPriv(Message *pMsg) override;
34
35protected:
42 void OnStart() override;
43
44private:
53 bool OnResult(InetCheckConnectionResultMsg *pMsg);
54};
Step that checks that the network connection works.
Definition checkinettask.h:15
~CheckInetTask() override=default
Destroy the object.
void OnStart() override
Request the check of the connection.
bool DispatchPriv(Message *pMsg) override
Pass an InetCheckConnectionResultMsg to OnResult().
Message that reports the outcome of NetInet::CheckConnection().
Definition inetcheckconnectionresultmsg.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