Home
last modified time | relevance | path

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

/DragonOS/kernel/src/net/socket/
H A Dinet.rs19 handle::GlobalSocketHandle, PosixSocketHandleItem, Socket, SocketHandleItem, SocketMetadata,
62 let socket = raw::Socket::new( in new()
91 impl Socket for RawSocket {
98 if let smoltcp::socket::Socket::Udp(mut sock) = in close()
113 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in read()
143 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in write()
157 let socket: &mut raw::Socket = in write()
158 socket_set_guard.get_mut::<raw::Socket>(self.handle.smoltcp_handle().unwrap()); in write()
222 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
272 let socket = udp::Socket::new(rx_buffer, tx_buffer); in new()
[all …]
H A Dmod.rs68 ) -> 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
[all …]
H A Dunix.rs7 handle::GlobalSocketHandle, PosixSocketHandleItem, Socket, SocketInode, SocketMetadata,
53 impl Socket for StreamSocket {
113 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
168 impl Socket for SeqpacketSocket {
228 fn box_clone(&self) -> Box<dyn Socket> { in box_clone() argument
/DragonOS/kernel/src/net/
H A Dnet_core.rs58 let mut dhcp_socket = dhcpv4::Socket::new(); in dhcp_query()
73 let event = binding.get_mut::<dhcpv4::Socket>(dhcp_handle).poll(); in dhcp_query()
226 smoltcp::socket::Socket::Raw(_) | smoltcp::socket::Socket::Udp(_) => { in send_event()
229 smoltcp::socket::Socket::Icmp(_) => unimplemented!("Icmp socket hasn't unimplemented"), in send_event()
230 smoltcp::socket::Socket::Tcp(inner_socket) => { in send_event()
243 smoltcp::socket::Socket::Dhcpv4(_) => {} in send_event()
244 smoltcp::socket::Socket::Dns(_) => unimplemented!("Dns socket hasn't unimplemented"), in send_event()
H A Dsyscall.rs22 socket::{new_socket, PosixSocketType, Socket, SocketInode},
115 let socket: SpinLockGuard<Box<dyn Socket>> = socket_inode.inner(); in setsockopt()
600 if file.file_type() != FileType::Socket { in to_endpoint()
/DragonOS/kernel/src/filesystem/vfs/
H A Dmod.rs61 Socket, enumerator
112 FileType::Socket => DT_SOCK, in get_file_type_num()
H A Dfile.rs583 FileType::Socket => { in add_epoll()
607 FileType::Socket => { in remove_epoll()
H A Dsyscall.rs1324 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat()
1495 FileType::Socket => tmp.stx_mode.insert(ModeType::S_IFSOCK), in do_statx()
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.10.md825 - 添加SocketPair trait并将Socket trait中的pair相关方法移动
835 * 将SocketPair trait合并到Socket trait中,去除downcast
/DragonOS/kernel/src/process/
H A Dmod.rs941 if f.file_type() != FileType::Socket { in get_socket()