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

Method tcp_send

perro_source/api_modules/perro_networking/src/world.rs:116–118  ·  view source on GitHub ↗
(&mut self, id: TcpConnectionId, bytes: &[u8])

Source from the content-addressed store, hash-verified

114 }
115
116 pub fn tcp_send(&mut self, id: TcpConnectionId, bytes: &[u8]) -> NetResult<usize> {
117 self.tcp_connection_mut(id)?.write(bytes)
118 }
119
120 pub fn tcp_send_frame(&mut self, id: TcpConnectionId, bytes: &[u8]) -> NetResult<()> {
121 self.tcp_connection_mut(id)?.write_frame(bytes)

Callers

nothing calls this directly

Calls 2

tcp_connection_mutMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected