Function nbdkit::peername

source ·
pub fn peername<T: SockaddrLike>() -> Result<T, Box<dyn Error>>
Expand description

Return the peer (client) address, if available.

Note that this function must be called from one of nbdkit’s own threads. That is, it can only be called in the same thread as one of the Server callbacks.