From 781d71db20b0c5acbe940eff1b1ef2f1b765ce54 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Wed, 1 Feb 2017 21:13:23 +0200 Subject: zmq os independent Change-Id: Iaf5a782be4db26a979a7535454719e8e62b5969a Signed-off-by: Yaroslav Brustinov --- .../python3/cel59/32bit/zmq/green/device.py | 32 ---------------------- 1 file changed, 32 deletions(-) delete mode 100644 scripts/external_libs/pyzmq-14.5.0/python3/cel59/32bit/zmq/green/device.py (limited to 'scripts/external_libs/pyzmq-14.5.0/python3/cel59/32bit/zmq/green/device.py') diff --git a/scripts/external_libs/pyzmq-14.5.0/python3/cel59/32bit/zmq/green/device.py b/scripts/external_libs/pyzmq-14.5.0/python3/cel59/32bit/zmq/green/device.py deleted file mode 100644 index 4b070237..00000000 --- a/scripts/external_libs/pyzmq-14.5.0/python3/cel59/32bit/zmq/green/device.py +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (C) PyZMQ Developers -# Distributed under the terms of the Modified BSD License. - -import zmq -from zmq.green import Poller - -def device(device_type, isocket, osocket): - """Start a zeromq device (gevent-compatible). - - Unlike the true zmq.device, this does not release the GIL. - - Parameters - ---------- - device_type : (QUEUE, FORWARDER, STREAMER) - The type of device to start (ignored). - isocket : Socket - The Socket instance for the incoming traffic. - osocket : Socket - The Socket instance for the outbound traffic. - """ - p = Poller() - if osocket == -1: - osocket = isocket - p.register(isocket, zmq.POLLIN) - p.register(osocket, zmq.POLLIN) - - while True: - events = dict(p.poll()) - if isocket in events: - osocket.send_multipart(isocket.recv_multipart()) - if osocket in events: - isocket.send_multipart(osocket.recv_multipart()) -- cgit 1.2.3-korg