Lines Matching refs:Endpoint
20 Endpoint, Protocol, ShutdownType, Socket,
231 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in do_connect()
259 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in do_bind()
565 let endpoint: Endpoint = socket.endpoint().ok_or(SystemError::EINVAL)?; in do_getsockname()
605 let endpoint: Endpoint = socket.peer_endpoint().ok_or(SystemError::EINVAL)?; in do_getpeername()
673 pub fn to_endpoint(addr: *const SockAddr, len: usize) -> Result<Endpoint, SystemError> { in to_endpoint() argument
698 return Ok(Endpoint::Ip(Some(wire::IpEndpoint::new(ip, port)))); in to_endpoint()
768 impl From<Endpoint> for SockAddr {
769 fn from(value: Endpoint) -> Self { in from()
771 Endpoint::Ip(ip_endpoint) => { in from()
800 Endpoint::LinkLayer(link_endpoint) => { in from()