Open blabaere opened 9 years ago
Agreed!
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.
For
nn_send
, we could start by just exposing a non-blocking version ofwrite
. I quite don't see how to integratenn_allocmsg
correctly for the moment. Fornn_recv
, there are four cases and two of them are already available in the reader API. We need to add the non-blocking versions ofread
andread_to_end
.