Lines Matching refs:Socket
22 use super::{net_core::poll_ifaces, Endpoint, Protocol, Socket, NET_DRIVERS};
255 let socket = raw::Socket::new( in new()
282 impl Socket for RawSocket {
288 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in read()
318 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
332 let socket: &mut raw::Socket = in write()
333 socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
399 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
437 let socket = udp::Socket::new(tx_buffer, rx_buffer); in new()
458 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind() argument
479 impl Socket for UdpSocket {
486 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in read()
521 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in write()
566 let socket = sockets.get_mut::<udp::Socket>(self.handle.0); in bind()
573 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll()
601 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
607 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint()
659 let socket = tcp::Socket::new(tx_buffer, rx_buffer); in new()
682 socket: &mut smoltcp::socket::tcp::Socket, in do_listen() argument
708 impl Socket for TcpSocket {
715 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in read()
762 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in write()
788 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in poll()
811 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
830 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
870 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in listen()
898 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in shutdown()
903 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
911 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in accept()
923 let mut tcp_socket = tcp::Socket::new(rx_buffer, tx_buffer); in accept()
967 let socket = sockets.get::<tcp::Socket>(self.handle.0); in endpoint()
977 let socket = sockets.get::<tcp::Socket>(self.handle.0); in peer_endpoint()
985 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
1123 pub struct SocketInode(SpinLock<Box<dyn Socket>>);
1126 pub fn new(socket: Box<dyn Socket>) -> Arc<Self> { in new()
1131 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner() argument
1206 file_type: FileType::Socket, in metadata()