1
"""PyZMQ and 0MQ version functions."""
4
# Copyright (c) 2010-2011 Brian E. Granger & Min Ragan-Kelley
6
# This file is part of pyzmq.
8
# pyzmq is free software; you can redistribute it and/or modify it under
9
# the terms of the Lesser GNU General Public License as published by
10
# the Free Software Foundation; either version 3 of the License, or
11
# (at your option) any later version.
13
# pyzmq is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# Lesser GNU General Public License for more details.
18
# You should have received a copy of the Lesser GNU General Public License
19
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#-----------------------------------------------------------------------------
24
#-----------------------------------------------------------------------------
26
from libzmq cimport _zmq_version
28
#-----------------------------------------------------------------------------
30
#-----------------------------------------------------------------------------
32
def zmq_version_info():
35
Return the version of ZeroMQ itself as a 3-tuple of ints.
37
cdef int major, minor, patch
38
_zmq_version(&major, &minor, &patch)
39
return (major, minor, patch)
42
__all__ = ['zmq_version_info']