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

Method write_handshake

perro_source/api_modules/perro_networking/src/tcp.rs:176–178  ·  view source on GitHub ↗
(&mut self, handshake: &NetHandshake)

Source from the content-addressed store, hash-verified

174 pub fn write(&mut self, bytes: &[u8]) -> NetResult<usize> {
175 if !self.tx_queue.is_empty() {
176 self.enqueue_write(bytes.to_vec())?;
177 self.flush_pending()?;
178 return Ok(bytes.len());
179 }
180 self.stream
181 .write(bytes)

Callers 1

tcp_send_handshakeMethod · 0.80

Calls 2

write_frameMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected