Lines Matching refs:IpSocketAddress
4 ErrorCode, IpAddress, IpAddressFamily, IpSocketAddress, TcpSocket,
15 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_ephemeral_port()
40 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_addrinuse()
63 .bind(IpSocketAddress::new( in test_tcp_bind_reuseaddr()
78 IpSocketAddress::new(IpAddress::new_loopback(ip.family()), bind_addr.port()); in test_tcp_bind_reuseaddr()
113 let bind_addr = IpSocketAddress::new(ip, 0); in test_tcp_bind_addrnotavail()
131 let result = sock.bind(IpSocketAddress::new(wrong_ip, 0)); in test_tcp_bind_wrong_family()
138 let ipv4_broadcast = IpSocketAddress::new(IpAddress::IPV4_BROADCAST, 0); in test_tcp_bind_non_unicast()
139 let ipv4_multicast = IpSocketAddress::new(IpAddress::Ipv4((224, 254, 0, 0)), 0); in test_tcp_bind_non_unicast()
140 let ipv6_multicast = IpSocketAddress::new(IpAddress::Ipv6((0xff00, 0, 0, 0, 0, 0, 0, 0)), 0); in test_tcp_bind_non_unicast()
161 let addr = IpSocketAddress::new(IpAddress::IPV4_MAPPED_LOOPBACK, 0); in test_tcp_bind_dual_stack()