1ZMQ::Constants(3)     User Contributed Perl Documentation    ZMQ::Constants(3)
2
3
4

NAME

6       ZMQ::Constants - Constants for libzmq
7

SYNOPSIS

9           use ZMQ::Constants ':all'; # pulls in all constants for all versions
10           use ZMQ::Constants ':v3.1.1', ':all'; # pulls in constants for 3.1.1
11           use ZMQ::Constants ':v3.1.2', ':all'; # pulls in constants for 3.1.2
12
13           # If you know what you're doing, this is the best way:
14           # (i.e., explicitly import the symbols)
15           use ZMQ::Constants qw(ZMQ_REQ);
16

DESCRIPTION

18       libzmq is a fast-chanding beast and constants get renamed, new one gest
19       removed, etc...
20
21       We used to auto-generate constants from the libzmq source code, but
22       then adpating the binding code to this change got very tedious, and
23       controling which version contains which constants got very hard to
24       manage.
25
26       This module is now separate from ZMQ main code, and lists the constants
27       statically. You can also specify which set of constants to pull in
28       depending on the zmq version.
29
30       If don't care to be strict about which constants to import into your
31       code, then don't bother with the ':vX.X.X' notation, just use like a
32       normal module:
33
34           use ZMQ::Constants qw(:all);     # pulls all known constants...
35                                            # note: may contain extra constants
36                                            # if we have clashes in the future
37
38           use ZMQ::Constants qw(ZMQ_PUSH); # import just ZMQ_PUSH
39

SUPPORTED VERSIONS

41       I have checked that the constants for the following versions are
42       available.
43
44       Note that for regular usage, you should just explicitly import what you
45       need.  The following exist to basically allow me to create a sane
46       catalog of what's available in what version. I reiterate: IN MOST CASES
47       YOU SHOULD JUST IMPORT WHAT YOU NEED:
48
49           use ZMQ::Constants qw(ZMQ_REP ZMQ_REQ); # etc
50
51       Please send pullreqs if there are new constants that are not defined.
52
53       libzmq 2.1.11
54       libzmq 3.1.1
55           No ZMQ device related stuff
56
57       libzmq 3.1.2
58           NOTE: This is libzmq/master branch as of this writing. new
59           constants may have been added.
60
61           Reintroduces ZMQ device related constants, and adds
62           ZMQ_FAIL_UNROUTABLE
63

FUNCTIONS

65       These functions are usually for internal use only. You should not need
66       to use them if you're just a ZMQ.pm user
67
68   register_set
69       Creates a new "set" of constants for a particular version.
70
71   get_sockopt_type
72       Gets the type for the given libzmq socket option. This is used when
73       ZMQ::getsockopt is called to determine the underlying socket option
74       type
75
76   set_sockopt_type
77       Sets the type for the given libzmq socket option.
78

SEE ALSO

80       ZMQ::LibZMQ2, ZMQ::LibZMQ3, ZMQ::CZMQ, ZMQ
81
82       <http://zeromq.org>
83
84       <http://github.com/lestrrat/p5-ZMQ>
85

AUTHOR

87       Daisuke Maki "<daisuke@endeworks.jp>"
88
90       The ZeroMQ module is
91
92       Copyright (C) 2010 by Daisuke Maki
93
94       This library is free software; you can redistribute it and/or modify it
95       under the same terms as Perl itself, either Perl version 5.8.0 or, at
96       your option, any later version of Perl 5 you may have available.
97
98
99
100perl v5.28.1                      2014-01-14                 ZMQ::Constants(3)
Impressum