Lines Matching refs:addr

46   struct sockaddr_in addr;  in TEST_IMPL()  local
57 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
58 ASSERT_OK(uv_tcp_bind(&conn, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
60 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT + 1, &addr)); in TEST_IMPL()
63 (const struct sockaddr*) &addr, in TEST_IMPL()
66 addrlen = sizeof(addr); in TEST_IMPL()
68 (struct sockaddr*) &addr, in TEST_IMPL()
81 struct sockaddr_in addr; in TEST_IMPL() local
85 ASSERT_OK(uv_ip4_addr("0.0.0.0", TEST_PORT, &addr)); in TEST_IMPL()
88 r = uv_tcp_bind(&server1, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
93 r = uv_tcp_bind(&server2, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
114 struct sockaddr_in addr; in TEST_IMPL() local
118 ASSERT_OK(uv_ip4_addr("127.255.255.255", TEST_PORT, &addr)); in TEST_IMPL()
124 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
139 struct sockaddr_in addr; in TEST_IMPL() local
143 ASSERT_OK(uv_ip4_addr("4.4.4.4", TEST_PORT, &addr)); in TEST_IMPL()
147 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
215 struct sockaddr_in addr; in TEST_IMPL() local
219 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
223 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
232 struct sockaddr_in addr; in TEST_IMPL() local
236 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
240 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, UV_TCP_IPV6ONLY); in TEST_IMPL()
263 struct sockaddr_in addr; in TEST_IMPL() local
270 ASSERT_OK(uv_ip4_addr("0.0.0.0", TEST_PORT, &addr)); in TEST_IMPL()
273 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
303 struct sockaddr_in addr; in TEST_IMPL() local
305 memset(&addr, 0, sizeof(addr)); in TEST_IMPL()
306 addr.sin_addr.s_addr = htonl(INADDR_ANY); in TEST_IMPL()
307 addr.sin_port = htons(9999); in TEST_IMPL()
308 addr.sin_family = AF_INET; in TEST_IMPL()
312 ASSERT_EQ(uv_tcp_bind(&tcp, (struct sockaddr*) &addr, 0), UV_EINVAL); in TEST_IMPL()