Lines Matching refs:Socket
21 use super::{net_core::poll_ifaces, Endpoint, Protocol, Socket, NET_DRIVERS};
142 let socket = raw::Socket::new( in new()
160 impl Socket for RawSocket {
166 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in read()
196 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
210 let socket: &mut raw::Socket = in write()
211 socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
277 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
315 let socket = udp::Socket::new(tx_buffer, rx_buffer); in new()
327 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind() argument
345 impl Socket for UdpSocket {
352 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in read()
387 let socket = socket_set_guard.get_mut::<udp::Socket>(self.handle.0); in write()
432 let socket = sockets.get_mut::<udp::Socket>(self.handle.0); in bind()
439 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll()
467 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
473 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint()
525 let socket = tcp::Socket::new(tx_buffer, rx_buffer); in new()
539 socket: &mut smoltcp::socket::tcp::Socket, in do_listen() argument
565 impl Socket for TcpSocket {
572 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in read()
619 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in write()
645 let socket = socket_set_guard.get_mut::<tcp::Socket>(self.handle.0); in poll()
668 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
687 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in connect()
727 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in listen()
752 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in shutdown()
757 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
765 let socket = sockets.get_mut::<tcp::Socket>(self.handle.0); in accept()
777 let mut tcp_socket = tcp::Socket::new(rx_buffer, tx_buffer); in accept()
813 let socket = sockets.get::<tcp::Socket>(self.handle.0); in endpoint()
823 let socket = sockets.get::<tcp::Socket>(self.handle.0); in peer_endpoint()
831 fn box_clone(&self) -> alloc::boxed::Box<dyn Socket> { in box_clone() argument
989 pub struct SocketInode(SpinLock<Box<dyn Socket>>);
992 pub fn new(socket: Box<dyn Socket>) -> Arc<Self> { in new()
997 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner() argument
1068 file_type: FileType::Socket, in metadata()