Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/net/socket/
Dsockets.rs230 remote_endpoint: Option<Endpoint>, // 记录远程endpoint提供给connect(), 应该使用IP地址。 field
272 remote_endpoint: None, in new()
318 if let Ok((size, remote_endpoint)) = socket.recv_slice(buf) { in read()
321 return (Ok(size), Endpoint::Ip(Some(remote_endpoint))); in read()
338 let remote_endpoint: &wire::IpEndpoint = { in write() localVariable
341 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
356 let local_ep = match remote_endpoint.addr { in write()
374 match socket.send_slice(&buf, *remote_endpoint) { in write()
415 self.remote_endpoint = Some(endpoint); in connect()
462 return self.remote_endpoint.clone(); in peer_endpoint()
[all …]
/DragonOS-0.1.9/kernel/src/net/
Dsyscall.rs416 let (new_socket, remote_endpoint) = socket.accept()?; in do_accept()
439 let sockaddr_in = SockAddr::from(remote_endpoint); in do_accept()