wavelength 1.0.0
Loading...
Searching...
No Matches
inetdisconnectresultmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
5#include "os/mem.h"
6
14public:
21 ~InetDisconnectResultMsg() override = default;
22
29 void *operator new(size_t nSize) {
30 return PoolMemAlloc(static_cast<int>(nSize), "InetDisconnectResultMsg", 0);
31 }
32
38 void operator delete(void *pBlock) {
39 PoolMemFree(pBlock);
40 }
41
49 Message *Clone() override {
50 return new InetDisconnectResultMsg(*this);
51 }
52
60 int Type() override {
62 }
63
71 const char *GetName() const override {
72 return "InetDisconnectResultMsg";
73 }
74};
Message that reports that NetInet::Disconnect() finished.
Definition inetdisconnectresultmsg.h:13
~InetDisconnectResultMsg() override=default
Destroy the object.
int Type() override
Report this message's registered identity.
Definition inetdisconnectresultmsg.h:60
Message * Clone() override
Produce a heap copy of this message.
Definition inetdisconnectresultmsg.h:49
const char * GetName() const override
Report this message's class name.
Definition inetdisconnectresultmsg.h:71
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
int g_nInetDisconnectResultMsgType
Identity that InetDisconnectResultMsg::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.