[zeromq-dev] how to receive a message into a static buffer?

Martin Sustrik sustrik at fastmq.com
Mon May 4 16:56:10 CEST 2009


Aamir M wrote:
> Hi Martin,
> 
> Is the concept of a user-provided receive buffer completely out of the 
> question?  What if the user provided 0MQ with a buffer and promised not 
> to touch the buffer until it gets a pointer from 'receive'? Couldn't the 
> copy be eliminated in this way?  I think this would be a very useful 
> feature for high performance streaming.

The problem remains: The data can be retrieved from the network even 
before you supply the buffer. I don't see any way how to get around 
that. Any ideas?

Martin



More information about the zeromq-dev mailing list