Add AuthInfo class

This commit is contained in:
badaix 2024-06-12 23:00:37 +02:00
parent c784e2526f
commit 878fecdc35
9 changed files with 215 additions and 29 deletions

View file

@ -19,12 +19,14 @@
#pragma once
// local headers
#include "authinfo.hpp"
// 3rd party headers
// standard headers
#include <functional>
#include <memory>
#include <optional>
#include <string>
@ -63,6 +65,8 @@ public:
/// Sends a message to the client (asynchronous)
virtual void sendAsync(const std::string& message) = 0;
std::optional<AuthInfo> authinfo;
protected:
ControlMessageReceiver* message_receiver_;
};