Searched refs:Socket (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 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 [all …]
|
D | mod.rs | 65 pub trait Socket: Sync + Send + Debug { interface 130 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument 184 fn box_clone(&self) -> Box<dyn Socket>; in box_clone() argument 204 impl Clone for Box<dyn Socket> { 205 fn clone(&self) -> Box<dyn Socket> { in clone() argument
|
D | net_core.rs | 47 let mut dhcp_socket = dhcpv4::Socket::new(); in dhcp_query() 62 let event = sockets.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
|
D | syscall.rs | 21 Endpoint, Protocol, ShutdownType, Socket, 39 let socket: Box<dyn Socket> = match address_family { in socket() 84 let socket: SpinLockGuard<Box<dyn Socket>> = socket_inode.inner(); in setsockopt()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 41 Socket, enumerator 74 FileType::Socket => DT_SOCK, in get_file_type_num()
|
D | syscall.rs | 606 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat()
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | errno.md | 75 #define EISCONN 30 /* 套接字已连接 Socket is connected.*/
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.rs | 307 if f.file_type() != FileType::Socket { in get_socket()
|