Lines Matching refs:endpoint
208 if let Some(Endpoint::Ip(Some(endpoint))) = to { in write()
224 if let wire::IpAddress::Ipv4(ipv4_dst) = endpoint.addr { in write()
327 fn do_bind(&self, socket: &mut udp::Socket, endpoint: Endpoint) -> Result<(), SystemError> { in do_bind()
328 if let Endpoint::Ip(Some(ip)) = endpoint { in do_bind()
376 if let Some(Endpoint::Ip(Some(ref endpoint))) = to { in write()
377 endpoint in write()
378 } else if let Some(Endpoint::Ip(Some(ref endpoint))) = self.remote_endpoint { in write()
379 endpoint in write()
390 if socket.endpoint().port == 0 { in write()
430 fn bind(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in bind()
434 return self.do_bind(socket, endpoint); in bind()
445 fn connect(&mut self, endpoint: super::Endpoint) -> Result<(), SystemError> { in connect()
446 if let Endpoint::Ip(_) = endpoint { in connect()
447 self.remote_endpoint = Some(endpoint); in connect()
471 fn endpoint(&self) -> Option<Endpoint> { in endpoint() method
474 let listen_endpoint = socket.endpoint(); in endpoint()
585 let endpoint = if let Some(p) = socket.remote_endpoint() { in read() localVariable
594 return (Ok(size), Endpoint::Ip(Some(endpoint))); in read()
666 fn connect(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in connect()
670 if let Endpoint::Ip(Some(ip)) = endpoint { in connect()
737 fn bind(&mut self, endpoint: Endpoint) -> Result<(), SystemError> { in bind()
738 if let Endpoint::Ip(Some(mut ip)) = endpoint { in bind()
758 let endpoint = self.local_endpoint.ok_or(SystemError::EINVAL)?; in accept() localVariable
778 self.do_listen(&mut tcp_socket, endpoint) in accept()
807 fn endpoint(&self) -> Option<Endpoint> { in endpoint() method