I use the draft API from git master czmq

Server and several clients, all written in c work very well.

I use
zsock_new_server(sm_cmd_sock_ep);
and
zsock_new_client(sm_cmd_sock_ep);

then clients and server do :

zsock_bsend(self->cmdSock, "s112", "R_INIT", 2, (r1 < 0)?1:0, r2);

res = zsock_brecv (self->cmdSock, "s112", &cmd, &deviceNo, &sign, &value);

to get messages back and forth


I'm by no means a python guy, and I'm struggling to send a msg
from pyzmq to that server

Is that possible?
And if it's possible, how do I have to encode the message on the Python side?

any hint's or links where I can lookup that stuff?

PS:
pyzmq is installed with

pip install -v --pre pyzmq  --install-option=--enable-drafts

So, draft stuff should be included

thanks
Ju


_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to