Home
last modified time | relevance | path

Searched refs:std_sa (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/nix/test/sys/
Dtest_sockopt.rs101 let std_sa = SocketAddrV4::from_str("127.0.0.1:4001").unwrap(); in test_so_tcp_maxseg() localVariable
102 let sock_addr = SockaddrIn::from(std_sa); in test_so_tcp_maxseg()
274 let std_sa = SocketAddrV4::from_str("127.0.0.1:4001").unwrap(); in test_get_mtu() localVariable
286 bind(usock, &SockaddrIn::from(std_sa)).unwrap(); in test_get_mtu()
Dtest_socket.rs305 let std_sa = SocketAddrV4::from_str("127.0.0.1:6789").unwrap(); in test_std_conversions() localVariable
306 let sock_addr = SockaddrIn::from(std_sa); in test_std_conversions()
307 assert_eq!(std_sa, sock_addr.into()); in test_std_conversions()
309 let std_sa = SocketAddrV6::from_str("[::1]:6000").unwrap(); in test_std_conversions() localVariable
310 let sock_addr: SockaddrIn6 = SockaddrIn6::from(std_sa); in test_std_conversions()
311 assert_eq!(std_sa, sock_addr.into()); in test_std_conversions()
369 let std_sa = SocketAddrV4::from_str("127.0.0.1:6789").unwrap(); in udp() localVariable
370 let sock_addr = SockaddrIn::from(std_sa); in udp()
495 let std_sa = SocketAddrV4::from_str("127.0.0.1:6793").unwrap(); in udp_sendmmsg() localVariable
497 let sock_addr = SockaddrIn::from(std_sa); in udp_sendmmsg()
[all …]