Lines Matching refs:IpSocketAddress
3 ErrorCode, IpAddress, IpAddressFamily, IpSocketAddress, Network,
11 let addr = IpSocketAddress::new(IpAddress::new_unspecified(family), SOME_PORT); in test_tcp_connect_unspec()
22 let addr = IpSocketAddress::new(IpAddress::new_loopback(family), 0); in test_tcp_connect_port_0()
37 let remote_addr = IpSocketAddress::new(wrong_ip, SOME_PORT); in test_tcp_connect_wrong_family()
49 let ipv4_broadcast = IpSocketAddress::new(IpAddress::IPV4_BROADCAST, SOME_PORT); in test_tcp_connect_non_unicast()
50 let ipv4_multicast = IpSocketAddress::new(IpAddress::Ipv4((224, 254, 0, 0)), SOME_PORT); in test_tcp_connect_non_unicast()
52 IpSocketAddress::new(IpAddress::Ipv6((0xff00, 0, 0, 0, 0, 0, 0, 0)), SOME_PORT); in test_tcp_connect_non_unicast()
75 .blocking_bind(&net, IpSocketAddress::new(IpAddress::IPV4_LOOPBACK, 0)) in test_tcp_connect_dual_stack()
81 IpSocketAddress::new(IpAddress::IPV4_MAPPED_LOOPBACK, v4_listener_addr.port()); in test_tcp_connect_dual_stack()
104 let bind_address = IpSocketAddress::new(ip, 0); in test_tcp_connect_explicit_bind()
116 .blocking_bind(net, IpSocketAddress::new(ip, 0)) in test_tcp_connect_explicit_bind()