Kurlyk
Loading...
Searching...
No Matches
NetworkWorker.hpp File Reference

Manages and processes network tasks such as HTTP requests and WebSocket events in a separate thread. More...

Go to the source code of this file.

Classes

class  kurlyk::core::NetworkWorker
 Singleton worker that manages asynchronous network operations, including HTTP requests and WebSocket events. More...
 

Namespaces

namespace  kurlyk
 Primary namespace for the Kurlyk library, encompassing initialization, request management, and utility functions.
 
namespace  kurlyk::core
 

Macros

#define _KURLYK_NETWORK_WORKER_HPP_INCLUDED
 
#define KURLYK_HANDLE_ERROR(e, msg)
 

Detailed Description

Manages and processes network tasks such as HTTP requests and WebSocket events in a separate thread.

Definition in file NetworkWorker.hpp.

Macro Definition Documentation

◆ _KURLYK_NETWORK_WORKER_HPP_INCLUDED

#define _KURLYK_NETWORK_WORKER_HPP_INCLUDED

Definition at line 3 of file NetworkWorker.hpp.

◆ KURLYK_HANDLE_ERROR

#define KURLYK_HANDLE_ERROR ( e,
msg )
Value:
::kurlyk::core::NetworkWorker::get_instance().handle_error((e), (msg), __FILE__, __LINE__, __FUNCTION__)
static NetworkWorker & get_instance()
Get the singleton instance of NetworkWorker.
void handle_error(const std::exception &e, const char *msg, const char *file, int line, const char *func)
Dispatches an exception to all registered error handlers.

Definition at line 8 of file NetworkWorker.hpp.