Home
last modified time | relevance | path

Searched refs:PosixSocketType (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.7/kernel/src/net/
Dsyscall.rs19 socket::{PosixSocketType, RawSocket, SocketInode, SocketOptions, TcpSocket, UdpSocket},
45 let socket_type = PosixSocketType::try_from((socket_type & 0xf) as u8)?; in do_socket()
50 PosixSocketType::Stream => Box::new(TcpSocket::new(SocketOptions::default())), in do_socket()
51 PosixSocketType::Datagram => Box::new(UdpSocket::new(SocketOptions::default())), in do_socket()
52 PosixSocketType::Raw => Box::new(RawSocket::new( in do_socket()
Dsocket.rs969 pub enum PosixSocketType { enum
979 impl TryFrom<u8> for PosixSocketType { implementation