Home
last modified time | relevance | path

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

/DragonOS/kernel/src/net/socket/
H A Dinet.rs245 remote_endpoint: Option<Endpoint>, // 记录远程endpoint提供给connect(), 应该使用IP地址。 field
290 remote_endpoint: None, in new()
365 let remote_endpoint: &wire::IpEndpoint = { in write() localVariable
368 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
382 match socket.send_slice(buf, *remote_endpoint) { in write()
423 self.remote_endpoint = Some(endpoint); in connect()
470 return self.remote_endpoint.clone(); in peer_endpoint()
647 let endpoint = if let Some(p) = socket.remote_endpoint() { in read()
905 .remote_endpoint() in accept()
988 return socket.remote_endpoint().map(|x| Endpoint::Ip(Some(x))); in peer_endpoint()
/DragonOS/kernel/src/net/
H A Dsyscall.rs410 let (new_socket, remote_endpoint) = socket.accept()?; in do_accept()
433 let sockaddr_in = SockAddr::from(remote_endpoint); in do_accept()