The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

POEx::ZMQ3::Role::Emitter - Event emitter for POEx::ZMQ3

SYNOPSIS

FIXME

DESCRIPTION

This is a small wrapper for MooX::Role::POE::Emitter, providing some default attributes and sane defaults for a POEx::ZMQ3::Sockets-based Emitter:

  ->event_prefix eq 'zeromq_'
  ->pluggable_type_prefixes eq +{
      PROCESS => 'P_Zmq',
      NOTIFY  => 'Zmq',
    }

A POEx::ZMQ3::Sockets instance is automatically created if not provided; see "zmq".

Some frontend methods for managing connections on a socket are provided. See below.

zmq

Takes no arguments.

Returns the current POEx::ZMQ3::Sockets instance.

add_bind

Takes a POEx::ZMQ3::Sockets socket alias and an endpoint to bind.

list_binds

Takes an optional socket alias.

Returns a list of currently-tracked bound endpoints for the socket.

If no alias is specified, returns all currently-tracked aliases with bound endpoints.

add_connect

Takes a socket alias and an endpoint to connect to.

list_connects

Takes the same arguments as "list_binds", but lists connect-type endpoints instead.

close_socket

Takes a socket alias.

Closes and stops tracking the specified socket.

(This happens automatically when 'stop' is called.)

AUTHOR

Jon Portnoy <avenj@cobaltirc.org>