Searched refs:SocketType (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.9/kernel/src/net/socket/ |
D | mod.rs | 317 if socket.metadata().unwrap().socket_type == SocketType::SeqpacketSocket { in close() 482 pub fn get_ephemeral_port(&self, socket_type: SocketType) -> Result<u16, SystemError> { in get_ephemeral_port() 506 SocketType::UdpSocket => self.udp_port_table.lock(), in get_ephemeral_port() 507 SocketType::TcpSocket => self.tcp_port_table.lock(), in get_ephemeral_port() 524 socket_type: SocketType, in bind_port() argument 530 SocketType::UdpSocket => self.udp_port_table.lock(), in bind_port() 531 SocketType::TcpSocket => self.tcp_port_table.lock(), in bind_port() 544 pub fn unbind_port(&self, socket_type: SocketType, port: u16) -> Result<(), SystemError> { in unbind_port() argument 546 SocketType::UdpSocket => self.udp_port_table.lock(), in unbind_port() 547 SocketType::TcpSocket => self.tcp_port_table.lock(), in unbind_port() [all …]
|
D | sockets.rs | 21 SocketType, SocketpairOps, HANDLE_MAP, PORT_MANAGER, SOCKET_SET, 74 SocketType::RawSocket, in new() 263 SocketType::UdpSocket, in new() 508 SocketType::TcpSocket, in new() 819 SocketType::TcpSocket, in accept() 917 SocketType::SeqpacketSocket, in new()
|