1
# -*- coding: utf-8 -*-
2
#-----------------------------------------------------------------------------
3
# Copyright (c) 2011-2012 Travis Cline
5
# This file is part of pyzmq
6
# It is adapted from upstream project zeromq_gevent under the New BSD License
8
# Distributed under the terms of the New BSD License. The full license is in
9
# the file COPYING.BSD, distributed as part of this software.
10
#-----------------------------------------------------------------------------
12
"""zmq.green - gevent compatibility with zeromq.
17
Instead of importing zmq directly, do so in the following manner:
21
import zmq.green as zmq
24
Any calls that would have blocked the current thread will now only block the
27
This compatibility is accomplished by ensuring the nonblocking flag is set
28
before any blocking operation and the ØMQ file descriptor is polled internally
29
to trigger needed events.
33
from zmq.green.core import _Context, _Socket
34
from zmq.green.poll import _Poller