[zeromq-dev] send msq from pyzmq to a server that "wait's" with zsock_brecv()
Juergen Gnoss
jgnoss at hotmail.com
Sat Dec 29 17:59:25 CET 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20181229/dbed0202/attachment.htm>
More information about the zeromq-dev
mailing list