Lines Matching refs:packet
108 fn send_packet(&mut self, packet: &[u8]) -> Result<(), TransportError>; in send_packet()
159 fn send_packet(&mut self, packet: &[u8]) -> Result<(), TransportError> { in send_packet()
161 &mut u64::try_from(packet.len()) in send_packet()
165 self.0.write_exact(packet) in send_packet()
618 let mut packet = [0u8; MAX_COMMAND_SIZE]; in process_next_packet() localVariable
619 let cmd_size = transport.receive_packet(&mut packet[..])?; in process_next_packet()
625 let cmd_str = match from_utf8(&packet[..cmd_size]) { in process_next_packet()
1105 fn add_input(&mut self, packet: &[u8]) { in add_input()
1106 self.in_queue.push_back(packet.into()); in add_input()
1123 fn send_packet(&mut self, packet: &[u8]) -> Result<(), TransportError> { in send_packet()
1124 self.out_queue.push_back(packet.into()); in send_packet()