Lines Matching refs:localhost
1033 // This creates a (udp) socket bound to localhost, then sends a message to
1034 // itself but uses Ipv4PacketInfo to force the source address to be localhost.
1086 // This creates a (udp) socket bound to ip6-localhost, then sends a message to
1088 // ip6-localhost.
2213 let localhost = SockaddrIn::new(127, 0, 0, 1, 0);
2214 bind(in_socket, &localhost).unwrap();
2268 let localhost = SockaddrIn::from_str("127.0.0.1:0").unwrap();
2269 bind(in_socket, &localhost).unwrap();
2333 let localhost = SockaddrIn::from_str("127.0.0.1:0").unwrap();
2334 bind(in_socket, &localhost).unwrap();
2482 // Validate that our network error originated from localhost:0.