Moved the Event Horizon Communications to this project.

This commit is contained in:
2024-10-06 20:08:22 -07:00
parent 9b42ad6d74
commit 1feff0a25c
12 changed files with 2507 additions and 4 deletions

View File

@@ -0,0 +1,42 @@
#pragma once
#include <ehs/Str.h>
#include <ehs/Serializer.h>
namespace ehs
{
class EHC;
class NetSystem;
class NetEnd;
class NetOp
{
private:
friend class NetSystem;
UInt_64 hashId;
Str_8 id;
public:
virtual ~NetOp() = default;
NetOp();
NetOp(Str_8 id);
NetOp(NetOp &&op) noexcept;
NetOp(const NetOp &op);
NetOp &operator=(NetOp &&op) noexcept;
NetOp &operator=(const NetOp &op);
Str_8 GetId() const;
UInt_64 GetHashId() const;
private:
virtual void Process(EHC *ehc, NetEnd *endpoint, NetSystem *sys, Serializer<UInt_64> &payload);
};
}