Lines Matching refs:Socket
19 handle::GlobalSocketHandle, PosixSocketHandleItem, Socket, SocketHandleItem, SocketMetadata,
62 let socket = raw::Socket::new( in new()
91 impl Socket for RawSocket {
98 if let smoltcp::socket::Socket::Udp(mut sock) = in close()
113 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in read()
143 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in write()
157 let socket: &mut raw::Socket = in write()
158 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in write()
222 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
272 let socket = udp::Socket::new(rx_buffer, tx_buffer); in new()
296 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind() argument
321 impl Socket for UdpSocket {
328 if let smoltcp::socket::Socket::Udp(mut sock) = in close()
344 socket_set_guard.get_mut::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in read()
377 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in write()
402 let socket = sockets.get_mut::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in bind()
409 let socket = sockets.get::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in poll()
444 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
450 let socket = sockets.get::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in endpoint()
542 socket: &mut tcp::Socket, in do_listen() argument
567 fn create_new_socket() -> tcp::Socket<'static> { in create_new_socket()
571 tcp::Socket::new(rx_buffer, tx_buffer) in create_new_socket()
580 let socket = socketset_guard.get::<tcp::Socket>(sh); in tcp_poll_listening()
595 impl Socket for TcpSocket {
606 .get_mut::<smoltcp::socket::tcp::Socket>(smoltcp_handle) in close()
635 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in read()
697 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in write()
733 .get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in poll()
748 sockets.get_mut::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in connect()
769 let socket = sockets.get_mut::<tcp::Socket>( in connect()
841 let socket = sockets.get_mut::<tcp::Socket>(handle.smoltcp_handle().unwrap()); in listen()
881 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
894 let con_smol_sock = sockset.get::<tcp::Socket>(handle.smoltcp_handle().unwrap()); in accept()
900 .get::<tcp::Socket>(self.handles[handle_index].smoltcp_handle().unwrap()); in accept()
944 let socket = sockset.get_mut::<tcp::Socket>( in accept()
974 sockets.get::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in endpoint()
987 sockets.get::<tcp::Socket>(self.handles.first().unwrap().smoltcp_handle().unwrap()); in peer_endpoint()
995 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument