Lines Matching refs:bind_addr
15 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_ephemeral_port() localVariable
18 sock.bind(bind_addr).unwrap(); in test_tcp_bind_ephemeral_port()
22 assert_eq!(bind_addr.ip(), bound_addr.ip()); in test_tcp_bind_ephemeral_port()
23 assert_ne!(bind_addr.port(), bound_addr.port()); in test_tcp_bind_ephemeral_port()
30 let bind_addr = attempt_random_port(ip, |bind_addr| sock.bind(bind_addr)).unwrap(); in test_tcp_bind_specific_port() localVariable
34 assert_eq!(bind_addr.ip(), bound_addr.ip()); in test_tcp_bind_specific_port()
35 assert_eq!(bind_addr.port(), bound_addr.port()); in test_tcp_bind_specific_port()
40 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_addrinuse() localVariable
43 sock1.bind(bind_addr).unwrap(); in test_tcp_bind_addrinuse()
59 let bind_addr = { in test_tcp_bind_reuseaddr() localVariable
69 let bind_addr = listener1.get_local_address().unwrap(); in test_tcp_bind_reuseaddr() localVariable
78 IpSocketAddress::new(IpAddress::new_loopback(ip.family()), bind_addr.port()); in test_tcp_bind_reuseaddr()
100 bind_addr in test_tcp_bind_reuseaddr()
107 listener2.bind(bind_addr).unwrap(); in test_tcp_bind_reuseaddr()
113 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_addrnotavail() localVariable
118 sock.bind(bind_addr), in test_tcp_bind_addrnotavail()