Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs20 GlobalSocketHandle, Socket, SocketHandleItem, SocketMetadata, SocketOptions, SocketPollMethod,
62 let socket = raw::Socket::new( in new()
89 impl Socket for RawSocket {
103 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in read()
136 let socket = socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
150 let socket: &mut raw::Socket = in write()
151 socket_set_guard.get_mut::<raw::Socket>(self.handle.0); in write()
215 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
256 let socket = udp::Socket::new(rx_buffer, tx_buffer); in new()
277 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind() argument
[all …]
Dmod.rs60 ) -> Result<Box<dyn Socket>, SystemError> { in new_socket() argument
61 let socket: Box<dyn Socket> = match address_family { in new_socket()
86 pub trait Socket: Sync + Send + Debug + Any { trait
156 fn accept(&mut self) -> Result<(Box<dyn Socket>, Endpoint), SystemError> { in accept() argument
214 fn box_clone(&self) -> Box<dyn Socket>; in box_clone() argument
275 impl Clone for Box<dyn Socket> {
276 fn clone(&self) -> Box<dyn Socket> { in clone() argument
283 fn socketpair(&self, socket0: &mut Box<dyn Socket>, socket1: &mut Box<dyn Socket>); in socketpair() argument
288 pub struct SocketInode(SpinLock<Box<dyn Socket>>, AtomicUsize);
291 pub fn new(socket: Box<dyn Socket>) -> Arc<Self> { in new()
[all …]
/DragonOS-0.1.9/kernel/src/net/
Dnet_core.rs51 let mut dhcp_socket = dhcpv4::Socket::new(); in dhcp_query()
66 let event = binding.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
206 smoltcp::socket::Socket::Raw(_) | smoltcp::socket::Socket::Udp(_) => { in send_event()
213 smoltcp::socket::Socket::Icmp(_) => unimplemented!("Icmp socket hasn't unimplemented"), in send_event()
214 smoltcp::socket::Socket::Tcp(inner_socket) => { in send_event()
227 smoltcp::socket::Socket::Dhcpv4(_) => {} in send_event()
228 smoltcp::socket::Socket::Dns(_) => unimplemented!("Dns socket hasn't unimplemented"), in send_event()
Dsyscall.rs21 socket::{new_socket, PosixSocketType, Socket, SocketHandleItem, SocketInode, HANDLE_MAP},
89 let mut alloc_fd = |socket: Box<dyn Socket>| -> Result<i32, SystemError> { in socketpair()
119 let socket: SpinLockGuard<Box<dyn Socket>> = socket_inode.inner(); in setsockopt()
/DragonOS-0.1.9/kernel/src/filesystem/vfs/
Dmod.rs52 Socket, enumerator
103 FileType::Socket => DT_SOCK, in get_file_type_num()
Dfile.rs477 FileType::Socket => { in add_epoll()
505 FileType::Socket => { in remove_epoll()
Dsyscall.rs840 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat()
/DragonOS-0.1.9/kernel/src/process/
Dmod.rs808 if guard.file_type() != FileType::Socket { in get_socket()