[][src]Module nbd::server

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

Ignores incoming export name, accepts everything Export name is ignored, currently only one export is supported

transmission

Serve given data. If readonly, use a dummy Write implementation.