Lines Matching refs:Socket
68 ) -> Result<Box<dyn Socket>, SystemError> { in new_socket() argument
69 let socket: Box<dyn Socket> = match address_family { in new_socket()
97 pub trait Socket: Sync + Send + Debug + Any { trait
162 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
216 fn box_clone(&self) -> Box<dyn Socket>; in box_clone() argument
277 impl Clone for Box<dyn Socket> {
278 fn clone(&self) -> Box<dyn Socket> { in clone() argument
285 pub struct SocketInode(SpinLock<Box<dyn Socket>>, AtomicUsize);
288 pub fn new(socket: Box<dyn Socket>) -> Arc<Self> { in new()
293 pub fn inner(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner() argument
297 pub unsafe fn inner_no_preempt(&self) -> SpinLockGuard<Box<dyn Socket>> { in inner_no_preempt() argument
392 file_type: FileType::Socket, in metadata()
783 pub fn poll(socket: &socket::Socket, handle_item: &SocketHandleItem) -> EPollEventType { in poll() argument
786 socket::Socket::Udp(udp) => Self::udp_poll(udp, shutdown), in poll()
787 socket::Socket::Tcp(tcp) => Self::tcp_poll(tcp, shutdown, handle_item.is_posix_listen), in poll()
788 socket::Socket::Raw(raw) => Self::raw_poll(raw, shutdown), in poll()
794 socket: &tcp::Socket, in tcp_poll() argument
855 pub fn udp_poll(socket: &udp::Socket, shutdown: ShutdownType) -> EPollEventType { in udp_poll() argument
885 pub fn raw_poll(socket: &raw::Socket, shutdown: ShutdownType) -> EPollEventType { in raw_poll() argument