nanomsg.rs icon indicating copy to clipboard operation
nanomsg.rs copied to clipboard

Expose the nn_send & nn_recv feature that are not accessible through the reader API

Open blabaere opened this issue 10 years ago • 2 comments

For nn_send, we could start by just exposing a non-blocking version of write. I quite don't see how to integrate nn_allocmsg correctly for the moment. For nn_recv, there are four cases and two of them are already available in the reader API. We need to add the non-blocking versions of read and read_to_end.

blabaere avatar Nov 10 '14 21:11 blabaere

Agreed!

thehydroimpulse avatar Nov 18 '14 21:11 thehydroimpulse

Now only remains to be implemented nn_send with the nn_msg zero-copy option. I'd like a new function to expose the fact that the buffer must not be used after being sent. It's the kind of constraint that rust should be able to express quite nicely.

blabaere avatar Feb 09 '15 21:02 blabaere