Lines Matching refs:addr
102 const struct sockaddr* addr, in recv_cb() argument
112 ASSERT_NULL(addr); in recv_cb()
118 ASSERT_NOT_NULL(addr); in recv_cb()
139 struct sockaddr_in addr; in TEST_IMPL() local
145 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
156 r = uv_udp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
166 (const struct sockaddr*) &addr, in TEST_IMPL()
223 struct sockaddr_in addr; in TEST_IMPL() local
228 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
233 r = bind(sock, (struct sockaddr*) &addr, sizeof(addr)); in TEST_IMPL()
253 struct sockaddr_in addr; in TEST_IMPL() local
260 ASSERT_OK(uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
268 r = connect(sock, (const struct sockaddr*) &addr, sizeof(addr)); in TEST_IMPL()
277 r = uv_udp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
306 struct sockaddr_un addr; in TEST_IMPL() local
316 memset(&addr, 0, sizeof addr); in TEST_IMPL()
317 addr.sun_family = AF_UNIX; in TEST_IMPL()
318 ASSERT_LT(strlen(TEST_PIPENAME), sizeof(addr.sun_path)); in TEST_IMPL()
319 memcpy(addr.sun_path, TEST_PIPENAME, strlen(TEST_PIPENAME)); in TEST_IMPL()
325 ASSERT_OK(bind(fd, (const struct sockaddr*)&addr, sizeof addr)); in TEST_IMPL()
338 (const struct sockaddr*) &addr, in TEST_IMPL()