]> git.proxmox.com Git - mirror_frr.git/commit
lib: ZeroMQ read handler, v2
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 17 May 2017 16:27:54 +0000 (18:27 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 28 Aug 2017 16:00:13 +0000 (18:00 +0200)
commitb6116506ec81735afa647af112c6aaa1ed35e9df
tree1d50228c173a313320f4720ed70398661a6a5694
parent3df31ebb0328b4b84fa11d5fbd956dcc30c44dfe
lib: ZeroMQ read handler, v2

This uses zmq_getsockopt(ZMQ_FD) to create a libfrr read event, which
then wraps zmq_poll and calls an user-specified ZeroMQ read handler.
It's wrapped in a separate library in order to make ZeroMQ support an
installation-time option instead of build-time.

Extended to support per-message and per-fragment callbacks as discussed
with Bingen in PR #566.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
configure.ac
lib/frr_zmq.c [new file with mode: 0644]
lib/frr_zmq.h [new file with mode: 0644]
lib/subdir.am