[zeromq-dev] malamute mlm_client_recv and udp socket together
Miao Lin
miaolin71 at gmail.com
Tue Jul 21 08:36:21 CEST 2015
Dear Pieter:
attached is my first malamute project, it open 2 clients for produce
and consume message. producer can send message to stream or to one client,
consumer can listen to series of stream and subject.
it is written in c++ use STL and readline.
do you think it helpful for malamute?
Best
Miao
2015-07-16 19:18 GMT+08:00 Pieter Hintjens <ph at imatix.com>:
> You can use CZMQ's zloop to poll on both a zsock_t and a POSIX socket.
> mlm_client_msgpipe returns the message socket for the client API.
>
> On Thu, Jul 16, 2015 at 9:35 AM, Miao Lin <miaolin71 at gmail.com> wrote:
> > Hi:
> > I am writing my first zeromq code also malamute code, it is a simple
> udp
> > message to malamute message bridge. I need to poll on a udp socket and
> also
> > call mlm_client_recv,
> > my question is , how to poll on these 2 kind of different things?
> >
> > if zmq, seems can use zmq_poll on both legacy socket and zmq socket,
> but
> > how to do in malamute?
> >
> > Best
> > MiaoLin
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150721/1e69d650/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcli.cpp
Type: text/x-c++src
Size: 14577 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150721/1e69d650/attachment.cpp>
More information about the zeromq-dev
mailing list