Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/net/
Dsocket.rs21 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
[all …]
Dmod.rs65 pub trait Socket: Sync + Send + Debug { trait
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.rs44 let mut dhcp_socket = dhcpv4::Socket::new(); in dhcp_query()
59 let event = sockets.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
Dsyscall.rs20 Endpoint, Protocol, ShutdownType, Socket,
48 let socket: Box<dyn Socket> = match address_family { in do_socket()
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dmod.rs40 Socket, enumerator
73 FileType::Socket => DT_SOCK, in get_file_type_num()
/DragonOS-0.1.7/docs/userland/libc/apis/api-list/
Derrno.md75 #define EISCONN 30 /* 套接字已连接 Socket is connected.*/
/DragonOS-0.1.7/kernel/src/process/
Dprocess.rs305 if f.file_type() != FileType::Socket { in get_socket()