zacharyvoase / zmqc

netcat for ØMQ. Small but powerful.
http://zacharyvoase.github.com/zmqc/
The Unlicense
255 stars 21 forks source link

REQ to ROUTER connection #3

Open nikolascee opened 12 years ago

nikolascee commented 12 years ago

Very cool project! I am trying to figure out why is following not supported:

  1. Router listening at tcp://*.5570
  2. zmqc sending a message via a REQ socket:
  echo "Hello" | zmqc -c REQ 'tcp://127.0.0.1:5570'

I am getting the following error message:

Traceback (most recent call last):
  File "C:\Python27\Scripts\zmqc-script.py", line 8, in <module>
    load_entry_point('zmqc==0.1.0', 'console_scripts', 'zmqc')()
  File "C:\Python27\lib\site-packages\zmqc.py", line 302, in main
    getattr(sock, args.behavior)(address)
  File "socket.pyx", line 475, in zmq.core.socket.Socket.connect (zmq\core\socket.c:4508)
zmq.core.error.ZMQError: Protocol not supported

Any ideas?

zacharyvoase commented 12 years ago

I can’t replicate this. Could you confirm that you’re still having this problem?

nikolascee commented 12 years ago

I'm still having this problem. The listening node (at tcp://*.5570) is ZeroMQ 3.2 - could it be that this is not supported in pyzmq, so that's why it does not work for zmqc?

zacharyvoase commented 12 years ago

Are the listening and sending nodes running the same version of ZeroMQ/pyzmq?

nikolascee commented 12 years ago

The listening node is 3.2. I get the same error message if I replace the 2.2 libzmq.dll that comes with pyzmq with the 3.2 one.

zacharyvoase commented 12 years ago

Ah, you’re using Windows? I’m not sure I can help you debug this issue; zmqc was designed to run on UNIX, and I don’t know anything about developing for Windows.