Searched refs:remote_endpoint (Results 1 – 2 of 2) sorted by relevance
288 remote_endpoint: Option<Endpoint>, // 记录远程endpoint提供给connect(), 应该使用IP地址。 field322 remote_endpoint: None, in new()357 if let Ok((size, remote_endpoint)) = socket.recv_slice(buf) { in read()361 return (Ok(size), Endpoint::Ip(Some(remote_endpoint))); in read()375 let remote_endpoint: &wire::IpEndpoint = { in write() localVariable378 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()393 let local_ep = match remote_endpoint.addr { in write()411 match socket.send_slice(&buf, *remote_endpoint) { in write()447 self.remote_endpoint = Some(endpoint); in connect()493 return self.remote_endpoint.clone(); in peer_endpoint()[all …]
514 let (new_socket, remote_endpoint) = socket.accept()?; in do_accept()525 let sockaddr_in = SockAddr::from(remote_endpoint); in do_accept()