BCNP 3.2.1
Batched Command Network Protocol
Loading...
Searching...
No Matches
dispatcher.h File Reference
#include "bcnp/stream_parser.h"
#include "bcnp/message_queue.h"
#include <bcnp/message_types.h>
#include <chrono>
#include <cstdint>
#include <functional>
#include <mutex>
#include <unordered_map>
Include dependency graph for dispatcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bcnp::DispatcherConfig
 Configuration for the packet dispatcher. More...
 
class  bcnp::PacketDispatcher
 Parses BCNP stream and dispatches packets to registered handlers. More...
 

Namespaces

namespace  bcnp
 

Typedefs

using bcnp::PacketHandler = std::function<void(const PacketView&)>
 Callback for handling message packets.
 
using bcnp::ErrorHandler = std::function<void(const StreamParser::ErrorInfo&)>
 Error callback for parse errors.
 
using bcnp::MessageHandler = PacketHandler