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

Method tcp_host_addr

perro_source/api_modules/perro_networking/src/world.rs:100–102  ·  view source on GitHub ↗
(&self, id: TcpHostId)

Source from the content-addressed store, hash-verified

98 }
99
100 pub fn tcp_host_addr(&self, id: TcpHostId) -> NetResult<SocketAddr> {
101 Ok(self.tcp_host(id)?.local_addr())
102 }
103
104 pub fn tcp_peer_addr(&self, id: TcpConnectionId) -> NetResult<SocketAddr> {
105 Ok(self.tcp_connection(id)?.peer_addr())

Calls 2

tcp_hostMethod · 0.80
local_addrMethod · 0.45

Tested by 1