Module server

Module server 

Source
Expand description

Items for implementing NBD server

“Serialize” your Read+Write+Seek into a Read+Write socket using standard protocol.

Re-exports§

pub use super::Export;

Constants§

DEFAULT_TCP_PORT
Recommended port for NBD servers, especially with new handshake format. There is some untested, doc-hidden old handshake support in this library.

Functions§

handshake
Passes the requested export name to the provided callback to get the requested export
transmission
Serve given data. If readonly, use a dummy Write implementation.