Skip to content

Instantly share code, notes, and snippets.

@agronholm
Created March 24, 2014 16:13
Show Gist options
  • Save agronholm/9743439 to your computer and use it in GitHub Desktop.
Save agronholm/9743439 to your computer and use it in GitHub Desktop.
import zmq
c = zmq.Context.instance()
s = c.socket(zmq.SUB)
s.subscribe = b''
s.bind('inproc://rpc-cmd')
s.unbind('inproc://rpc-cmd')
# Traceback (most recent call last):
# File "sockettest.py", line 6, in <module>
# s.unbind('inproc://rpc-cmd')
# File "socket.pyx", line 495, in zmq.backend.cython.socket.Socket.unbind (zmq/backend/cython/socket.c:4198)
# zmq.error.ZMQError: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment