Lines Matching refs:create
17 let sock = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_ephemeral_port()
28 let sock = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_specific_port()
42 let sock1 = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_addrinuse()
48 let sock2 = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_addrinuse()
57 let client = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_reuseaddr()
60 let listener1 = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_reuseaddr()
106 let listener2 = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_reuseaddr()
115 let sock = TcpSocket::create(ip.family()).unwrap(); in test_tcp_bind_addrnotavail()
130 let sock = TcpSocket::create(family).unwrap(); in test_tcp_bind_wrong_family()
142 let sock_v4 = TcpSocket::create(IpAddressFamily::Ipv4).unwrap(); in test_tcp_bind_non_unicast()
143 let sock_v6 = TcpSocket::create(IpAddressFamily::Ipv6).unwrap(); in test_tcp_bind_non_unicast()
160 let sock = TcpSocket::create(IpAddressFamily::Ipv6).unwrap(); in test_tcp_bind_dual_stack()