[zeromq-dev] Windows and IOCP

Martin Sustrik sustrik at 250bpm.com
Sun May 15 09:43:29 CEST 2011


On 05/15/2011 05:19 AM, Steven McCoy wrote:

> If you're doing it right, it is all zero copy so all the buffers should
> be in ZeroMQ or the application.

Aha. So there's a callback notifying the application that the data were 
already sent. The application is then responsible for deallocating the 
buffer. Right?

In such case I would recommend taking care of having at most one send() 
per connection on the fly.

That way the pending mesages are owned by 0MQ (meaning that HWM is 
properly observed) rather than by IOCP.

Martin



More information about the zeromq-dev mailing list