Kurlyk
Loading...
Searching...
No Matches
INetworkTaskManager.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef _KURLYK_CORE_INETWORKTASKMANAGER_HPP_INCLUDED
3#define _KURLYK_CORE_INETWORKTASKMANAGER_HPP_INCLUDED
4
7
8namespace kurlyk::core {
9
13 public:
15 virtual void process() = 0;
16
18 virtual void shutdown() = 0;
19
21 virtual const bool is_loaded() const = 0;
22
23 virtual ~INetworkTaskManager() = default;
24 };
25
26} // namespace kurlyk::core
27
28#endif // _KURLYK_CORE_INETWORKTASKMANAGER_HPP_INCLUDED
Interface for modules managed by NetworkWorker (e.g., HTTP, WebSocket).
virtual void process()=0
Called periodically to process tasks.
virtual ~INetworkTaskManager()=default
virtual void shutdown()=0
Called during shutdown to clean up.
virtual const bool is_loaded() const =0
Indicates whether the module has pending or active work.