Searched refs:InetAddr (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 452 pub enum InetAddr { 459 impl InetAddr { impl 461 pub fn from_std(std: &net::SocketAddr) -> InetAddr { 464 InetAddr::V4(libc::sockaddr_in { 477 InetAddr::V6(libc::sockaddr_in6 { 495 pub fn new(ip: IpAddr, port: u16) -> InetAddr { 498 InetAddr::V4(libc::sockaddr_in { 506 InetAddr::V6(libc::sockaddr_in6 { 518 InetAddr::V4(ref sa) => IpAddr::V4(Ipv4Addr(sa.sin_addr)), 519 InetAddr::V6(ref sa) => IpAddr::V6(Ipv6Addr(sa.sin6_addr)), [all …]
|
D | mod.rs | 49 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, LinkAddr, SockaddrIn, SockaddrIn6, 59 InetAddr, IpAddr, Ipv4Addr, Ipv6Addr, SockaddrIn, SockaddrIn6, 2408 Ok(SockAddr::Inet(InetAddr::V4(sin))) in sockaddr_storage_to_addr() 2414 Ok(SockAddr::Inet(InetAddr::V6(sin6))) in sockaddr_storage_to_addr()
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 5 use nix::sys::socket::InetAddr; 22 let addr = InetAddr::from_std(&actual); in test_inetv4_addr_to_sock_addr() 25 InetAddr::V4(addr) => { in test_inetv4_addr_to_sock_addr() 48 let addr = InetAddr::from_std(&actual); in test_inetv4_addr_roundtrip_sockaddr_storage_to_addr() 143 let addr = InetAddr::from_std(&actual); in test_inetv6_addr_roundtrip_sockaddr_storage_to_addr()
|
/external/rust/crates/nix/ |
D | CHANGELOG.md | 245 - Deprecated `InetAddr` and `SockAddr` in favor of `SockaddrIn`, `SockaddrIn6`, 260 - `InetAddr::from_std` now sets the `sin_len`/`sin6_len` fields on the BSDs. 393 - Deprecated `SockAddr/InetAddr::to_str` in favor of `ToString::to_string` 1581 - Improved the conversion from `std::net::SocketAddr` to `InetAddr` in
|