Name

Synopsis

// Constructor
// Create a new zproxy object. You must create the frontend and backend
// sockets, configure them, and connect or bind them, before you pass them
// to the constructor. Do NOT use the sockets again, after passing them to
// this method.
CZMQ_EXPORT zproxy_t *
zproxy_new (zctx_t *ctx, void *frontend, void *backend);
// Destructor
// Destroy a zproxy object; note this first stops the proxy.
CZMQ_EXPORT void
zproxy_destroy (zproxy_t **self_p);
// Copy all proxied messages to specified endpoint; if this is NULL, any
// in-progress capturing will be stopped. You must already have bound the
// endpoint to a PULL socket.
CZMQ_EXPORT void
zproxy_capture (zproxy_t *self, const char *endpoint);
// Pauses a zproxy object; a paused proxy will cease processing messages,
// causing them to be queued up and potentially hit the high-water mark on
// the frontend socket, causing messages to be dropped, or writing
// applications to block.
CZMQ_EXPORT void
zproxy_pause (zproxy_t *self);
// Resume a zproxy object
CZMQ_EXPORT void
zproxy_resume (zproxy_t *self);
// Self test of this class
CZMQ_EXPORT void
zproxy_v2_test (bool verbose);

Description

The zproxy class provides an equivalent to the ZMQ steerable proxy, on all versions of ZeroMQ.

This class is deprecated in CZMQ v3; it works together with zctx, zsocket, and other deprecated V2 classes. New applications should use the V3 zproxy interface, based on zactor, together with the zsock class for sockets.

See also

Authors

The CZMQ manual was written by Pieter Hintjens<moc.xitami|hp#moc.xitami|hp>.

Resources

Main web site: http://czmq.zeromq.org/

Report bugs to the ØMQ development mailing list: <gro.qmorez.stsil|ved-qmorez#gro.qmorez.stsil|ved-qmorez>

Copyright

Copyright (c) the Contributors as noted in the AUTHORS file. This file is part of CZMQ, the high-level C binding for ØMQ: http://czmq.zeromq.org. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Web site design and content is copyright (c) 2007-2012 iMatix Corporation. Contact us for professional support. Site content licensed under the Creative Commons Attribution-Share Alike 3.0 License. ØMQ is copyright (c) Copyright (c) 2007-2012 iMatix Corporation and Contributors. ØMQ is free software licensed under the LGPL. ØMQ, ZeroMQ, and 0MQ are trademarks of iMatix Corporation. Terms of Use — Privacy Policy

Click here to edit contents of this page.

Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.

Append content without editing the whole page source.

Check out how this page has evolved in the past.

If you want to discuss contents of this page - this is the easiest way to do it.

View and manage file attachments for this page.

A few useful tools to manage this Site.

See pages that link to and include this page.

Change the name (also URL address, possibly the category) of the page.