[zeromq-dev] Can one send a multipart message (SNDMORE flag) , but receive whole message on receiver end?

Lindley French lindleyf at gmail.com
Sun May 4 21:25:03 CEST 2014


You would just write native code to loop until there are no more parts, and
then write JNI to call that code and return the whole thing in a single
data structure.


On Sat, May 3, 2014 at 1:08 PM, artemv zmq <artemv.zmq at gmail.com> wrote:

> hi Lindley
>
> Could you please elaborate more on this ... ) Have no idea how to do so.
>
>
> 2014-05-01 10:19 GMT+03:00 Lindley French <lindleyf at gmail.com>:
>
> There's no particular reason you couldn't add logic to receive an entire
>> multipart message in one JNI call if you want.
>>
>>
>> On Wed, Apr 30, 2014 at 2:22 AM, artemv zmq <artemv.zmq at gmail.com> wrote:
>>
>>> Ok.  Answering to my own question.. It seems like it's impossible to do
>>> so. You can only send multiparts and receive multiparts.
>>>
>>>
>>> 2014-04-30 11:52 GMT+03:00 artemv zmq <artemv.zmq at gmail.com>:
>>>
>>> >> but receive whole message on receiver end
>>>>
>>>> I mean .. using single socket.recv()  call, i.e. w/o  spending time on
>>>> getting  multiparts.
>>>>
>>>>
>>>> 2014-04-30 11:50 GMT+03:00 artemv zmq <artemv.zmq at gmail.com>:
>>>>
>>>> Hi community,
>>>>>
>>>>> Got a question right in the subj. I'm asking because I'm on java, and
>>>>> want to gain some perf. improvements on receiver end..  essentially I want
>>>>> to minimize calls to ZMQ.Socket.recv() function since jni call in java
>>>>> isn't  entirely free.
>>>>>
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140504/ff8f77c1/attachment.htm>


More information about the zeromq-dev mailing list