Sha256: 8c4004636f31648f98050e637daa231c70fcf4b64da326548b4f50dccba5ceb1

Contents?: true

Size: 1.84 KB

Versions: 16

Compression:

Stored size: 1.84 KB

Contents

/*  =========================================================================
    zmonitor - socket event monitor

    Copyright (c) the Contributors as noted in the AUTHORS file.
    This file is part of CZMQ, the high-level C binding for 0MQ:
    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/.
    =========================================================================
*/

#ifndef __ZMONITOR_H_INCLUDED__
#define __ZMONITOR_H_INCLUDED__

#ifdef __cplusplus
extern "C" {
#endif

//  @interface
//  Create new zmonitor actor instance to monitor a zsock_t socket:
//
//      zactor_t *monitor = zactor_new (zmonitor, mysocket);
//
//  Destroy zmonitor instance.
//
//      zactor_destroy (&monitor);
//
//  Enable verbose logging of commands and activity.
//
//      zstr_send (monitor, "VERBOSE");
//
//  Listen to monitor event type (zero or types, ending in NULL):
//      zstr_sendx (monitor, "LISTEN", type, ..., NULL);
//  
//      Events:
//      CONNECTED
//      CONNECT_DELAYED
//      CONNECT_RETRIED
//      LISTENING
//      BIND_FAILED
//      ACCEPTED
//      ACCEPT_FAILED
//      CLOSED
//      CLOSE_FAILED
//      DISCONNECTED
//      MONITOR_STOPPED
//      ALL
//
//  Start monitor; after this, any further LISTEN commands are ignored.
//
//      zstr_send (monitor, "START");
//      zsock_wait (monitor);
//
//  Receive next monitor event:
//
//      zmsg_t *msg = zmsg_recv (monitor);
//
//  This is the zmonitor constructor as a zactor_fn; the argument can be
//  a zactor_t, zsock_t, or libzmq void * socket:
CZMQ_EXPORT void
    zmonitor (zsock_t *pipe, void *sock);

//  Selftest
CZMQ_EXPORT void
    zmonitor_test (bool verbose);
//  @end
#ifdef __cplusplus
}
#endif

#endif

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
laag-libczmq-4.1.0.0 vendor/github.com/zeromq/czmq/include/zmonitor.h
czmq-ffi-gen-0.14.1-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.14.1-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.13.0-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.13.0-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.12.0-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.12.0-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.10.0-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.10.0-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.4-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.4-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.3-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.3-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.2-x64-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.2-x86-mingw32 vendor/local/include/zmonitor.h
czmq-ffi-gen-0.9.1-x86-mingw32 vendor/local/include/zmonitor.h