Home
last modified time | relevance | path

Searched refs:Socket (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.8/kernel/src/net/
Dsocket.rs22 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 …]
Dmod.rs65 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
Dnet_core.rs47 let mut dhcp_socket = dhcpv4::Socket::new(); in dhcp_query()
62 let event = sockets.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
Dsyscall.rs21 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/
Dmod.rs41 Socket, enumerator
74 FileType::Socket => DT_SOCK, in get_file_type_num()
Dsyscall.rs606 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat()
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Derrno.md75 #define EISCONN 30 /* 套接字已连接 Socket is connected.*/
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs307 if f.file_type() != FileType::Socket { in get_socket()