Searched refs:socket_type (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/net/socket/ |
H A D | mod.rs | 66 socket_type: PosixSocketType, in new_socket() 70 AddressFamily::Unix => match socket_type { in new_socket() 77 AddressFamily::INet => match socket_type { in new_socket() 307 if socket.metadata().socket_type == SocketType::Unix { in do_close() 312 PORT_MANAGER.unbind_port(socket.metadata().socket_type, ip.port); in do_close() 511 pub fn get_ephemeral_port(&self, socket_type: SocketType) -> Result<u16, SystemError> { in get_ephemeral_port() 534 let listen_table_guard = match socket_type { in get_ephemeral_port() 537 _ => panic!("{:?} cann't get a port", socket_type), in get_ephemeral_port() 551 pub fn bind_port(&self, socket_type: SocketType, port: u16) -> Result<(), SystemError> { in bind_port() 553 let mut listen_table_guard = match socket_type { in bind_port() [all …]
|
H A D | inet.rs | 300 ip.port = PORT_MANAGER.get_ephemeral_port(self.metadata.socket_type)?; in do_bind() 303 PORT_MANAGER.bind_port(self.metadata.socket_type, ip.port)?; in do_bind() 751 let temp_port = PORT_MANAGER.get_ephemeral_port(self.metadata.socket_type)?; in connect() 753 PORT_MANAGER.bind_port(self.metadata.socket_type, temp_port)?; in connect() 856 ip.port = PORT_MANAGER.get_ephemeral_port(self.metadata.socket_type)?; in bind() 860 PORT_MANAGER.bind_port(self.metadata.socket_type, ip.port)?; in bind()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 194 for (handle, socket_type) in sockets.iter() { in send_event() 210 let mut events = SocketPollMethod::poll(socket_type, handle_item).bits() as u64; in send_event() 213 match socket_type { in send_event()
|
H A D | syscall.rs | 38 socket_type: usize, in socket() 42 let socket_type = PosixSocketType::try_from((socket_type & 0xf) as u8)?; in socket() localVariable 45 let socket = new_socket(address_family, socket_type, protocol)?; in socket() 66 socket_type: usize, in socketpair() 71 let socket_type = PosixSocketType::try_from((socket_type & 0xf) as u8)?; in socketpair() localVariable 78 let inode0 = SocketInode::new(new_socket(address_family, socket_type, protocol)?); in socketpair() 79 let inode1 = SocketInode::new(new_socket(address_family, socket_type, protocol)?); in socketpair()
|