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