CppZmqZoltanExt 0.0.1
Loading...
Searching...
No Matches
poller.h File Reference

Event polling for monitoring multiple ZMQ sockets. More...

#include <chrono>
#include <vector>
#include <zmq.hpp>
#include "cppzmqzoltanext/czze_export.h"
Include dependency graph for poller.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  zmqzext::poller_t
 Class for efficient polling of multiple ZMQ sockets. More...
 

Detailed Description

Event polling for monitoring multiple ZMQ sockets.

This header provides the poller_t class for efficient polling of multiple ZMQ sockets. The poller monitors a set of sockets for readiness to receive data, allowing applications to manage multiple concurrent socket operations with a single wait operation.

The module implements ZMQ's poll mechanism with support for timeout control, interruption handling, and termination detection. This enables event-driven architectures where multiple sockets are monitored concurrently.

Key features:

  • Dynamic socket registration and deregistration
  • Wait for single or multiple ready sockets
  • Configurable timeout values
  • Interruptible polling for signal handling
  • Termination detection
Authors
Luan Young (luanp.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om)

Distributed under the MIT License (MIT) (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)

Definition in file poller.h.