thehydroimpulse / nanomsg.rs

Nanomsg library for Rust
Other
389 stars 56 forks source link

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

Open blabaere opened 9 years ago

blabaere commented 9 years ago

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.

thehydroimpulse commented 9 years ago

Agreed!

blabaere commented 9 years ago

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.