Home
last modified time | relevance | path

Searched refs:SocketType (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/net/socket/
H A Dmod.rs307 if socket.metadata().socket_type == SocketType::Unix { in do_close()
511 pub fn get_ephemeral_port(&self, socket_type: SocketType) -> Result<u16, SystemError> { in get_ephemeral_port()
535 SocketType::Udp => self.udp_port_table.lock(), in get_ephemeral_port()
536 SocketType::Tcp => self.tcp_port_table.lock(), in get_ephemeral_port()
551 pub fn bind_port(&self, socket_type: SocketType, port: u16) -> Result<(), SystemError> { in bind_port() argument
554 SocketType::Udp => self.udp_port_table.lock(), in bind_port()
555 SocketType::Tcp => self.tcp_port_table.lock(), in bind_port()
569 pub fn unbind_port(&self, socket_type: SocketType, port: u16) { in unbind_port() argument
571 SocketType::Udp => self.udp_port_table.lock(), in unbind_port()
572 SocketType::Tcp => self.tcp_port_table.lock(), in unbind_port()
[all …]
H A Dunix.rs8 SocketOptions, SocketType,
34 SocketType::Unix, in new()
149 SocketType::Unix, in new()
H A Dinet.rs20 SocketOptions, SocketPollMethod, SocketType, HANDLE_MAP, PORT_MANAGER, SOCKET_SET,
73 SocketType::Raw, in new()
279 SocketType::Udp, in new()
522 SocketType::Tcp, in new()
916 SocketType::Tcp, in accept()