Home
last modified time | relevance | path

Searched refs:addr4 (Results 1 – 6 of 6) sorted by relevance

/libuv/test/
H A Dtest-ip-name.c30 struct sockaddr_in addr4; member
39 struct sockaddr_in* addr4 = &test_addr.addr4; in TEST_IMPL() local
43 ASSERT_OK(uv_ip4_addr("192.168.0.1", TEST_PORT, addr4)); in TEST_IMPL()
44 ASSERT_OK(uv_ip4_name(addr4, dst, INET_ADDRSTRLEN)); in TEST_IMPL()
H A Dtest-getnameinfo.c33 static struct sockaddr_in addr4; variable
56 r = uv_ip4_addr(address_ip4, port, &addr4); in TEST_IMPL()
62 (const struct sockaddr*)&addr4, in TEST_IMPL()
79 ASSERT_OK(uv_ip4_addr(address_ip4, port, &addr4)); in TEST_IMPL()
84 (const struct sockaddr*)&addr4, in TEST_IMPL()
H A Dtest-connect-unspecified.c36 struct sockaddr_in addr4; in TEST_IMPL() local
45 ASSERT_OK(uv_ip4_addr("0.0.0.0", TEST_PORT, &addr4)); in TEST_IMPL()
48 (const struct sockaddr*) &addr4, in TEST_IMPL()
H A Dtest-threadpool-cancel.c235 struct sockaddr_in addr4; in TEST_IMPL() local
240 r = uv_ip4_addr("127.0.0.1", 80, &addr4); in TEST_IMPL()
247 r = uv_getnameinfo(loop, reqs + 0, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
250 r = uv_getnameinfo(loop, reqs + 1, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
253 r = uv_getnameinfo(loop, reqs + 2, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
256 r = uv_getnameinfo(loop, reqs + 3, getnameinfo_cb, (const struct sockaddr*)&addr4, 0); in TEST_IMPL()
/libuv/src/win/
H A Dudp.c772 struct sockaddr_in addr4; in uv_udp_set_membership() local
775 if (uv_ip4_addr(multicast_addr, 0, &addr4) == 0) in uv_udp_set_membership()
776 return uv__udp_set_membership4(handle, &addr4, interface_addr, membership); in uv_udp_set_membership()
830 struct sockaddr_in* addr4; in uv_udp_set_multicast_interface() local
833 addr4 = (struct sockaddr_in*) &addr_st; in uv_udp_set_multicast_interface()
843 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in uv_udp_set_multicast_interface()
845 } else if (uv_ip4_addr(interface_addr, 0, addr4) == 0) { in uv_udp_set_multicast_interface()
860 (char*) &addr4->sin_addr, in uv_udp_set_multicast_interface()
861 sizeof(addr4->sin_addr)) == SOCKET_ERROR) { in uv_udp_set_multicast_interface()
/libuv/src/unix/
H A Dudp.c1092 struct sockaddr_in addr4; in uv_udp_set_membership() local
1095 if (uv_ip4_addr(multicast_addr, 0, &addr4) == 0) { in uv_udp_set_membership()
1099 return uv__udp_set_membership4(handle, &addr4, interface_addr, membership); in uv_udp_set_membership()
1300 struct sockaddr_in* addr4; in uv_udp_set_multicast_interface() local
1303 addr4 = (struct sockaddr_in*) &addr_st; in uv_udp_set_multicast_interface()
1313 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in uv_udp_set_multicast_interface()
1315 } else if (uv_ip4_addr(interface_addr, 0, addr4) == 0) { in uv_udp_set_multicast_interface()
1327 (void*) &addr4->sin_addr, in uv_udp_set_multicast_interface()
1328 sizeof(addr4->sin_addr)) == -1) { in uv_udp_set_multicast_interface()

Completed in 26 milliseconds