[zeromq-dev] malamute mlm_client_recv and udp socket together

Pieter Hintjens ph at imatix.com
Tue Jul 21 11:10:20 CEST 2015


Feel free to publish this with an explanation, as a blog article
somewhere. That's useful for people.

On Tue, Jul 21, 2015 at 8:36 AM, Miao Lin <miaolin71 at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list