MCPcopy Create free account
hub / github.com/PerroEngine/Perro / peer_addr

Method peer_addr

perro_source/api_modules/perro_networking/src/tcp.rs:122–124  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

120 .peer_addr()
121 .map_err(|err| NetError::from_io(NetErrorKind::PeerAddress, err))?;
122 stream
123 .set_nonblocking(true)
124 .map_err(|err| NetError::from_io(NetErrorKind::SetNonBlocking, err))?;
125 Ok(Self {
126 stream,
127 peer,

Callers 4

tcp_peer_addrMethod · 0.80
from_streamMethod · 0.80
accept_with_optionsMethod · 0.80
maybe_tls_peer_stringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected