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

Method tcp_peer_addr

perro_source/api_modules/perro_networking/src/world.rs:104–106  ·  view source on GitHub ↗
(&self, id: TcpConnectionId)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn tcp_peer_addr(&self, id: TcpConnectionId) -> NetResult<SocketAddr> {
105 Ok(self.tcp_connection(id)?.peer_addr())
106 }
107
108 pub fn udp_addr(&self, id: UdpEndpointId) -> NetResult<SocketAddr> {
109 Ok(self.udp_endpoint(id)?.local_addr())

Callers

nothing calls this directly

Calls 2

peer_addrMethod · 0.80
tcp_connectionMethod · 0.80

Tested by

no test coverage detected