Lines Matching refs:remote_endpoint
288 remote_endpoint: Option<Endpoint>, // 记录远程endpoint提供给connect(), 应该使用IP地址。 field
322 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() localVariable
378 } 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()
585 let endpoint = if let Some(p) = socket.remote_endpoint() { in read()
769 let remote_ep = socket.remote_endpoint().ok_or(SystemError::ENOTCONN)?; in accept()
824 return socket.remote_endpoint().map(|x| Endpoint::Ip(Some(x))); in peer_endpoint()