Lines Matching refs:h

33   uv_udp_t h;  in udp_options_test()  local
38 r = uv_udp_init(loop, &h); in udp_options_test()
41 uv_unref((uv_handle_t*)&h); /* don't keep the loop alive */ in udp_options_test()
43 r = uv_udp_bind(&h, addr, 0); in udp_options_test()
46 r = uv_udp_set_broadcast(&h, 1); in udp_options_test()
47 r |= uv_udp_set_broadcast(&h, 1); in udp_options_test()
48 r |= uv_udp_set_broadcast(&h, 0); in udp_options_test()
49 r |= uv_udp_set_broadcast(&h, 0); in udp_options_test()
54 r = uv_udp_set_ttl(&h, i); in udp_options_test()
66 r = uv_udp_set_ttl(&h, invalid_ttls[i]); in udp_options_test()
70 r = uv_udp_set_multicast_loop(&h, 1); in udp_options_test()
71 r |= uv_udp_set_multicast_loop(&h, 1); in udp_options_test()
72 r |= uv_udp_set_multicast_loop(&h, 0); in udp_options_test()
73 r |= uv_udp_set_multicast_loop(&h, 0); in udp_options_test()
78 r = uv_udp_set_multicast_ttl(&h, i); in udp_options_test()
83 r = uv_udp_set_multicast_ttl(&h, 256); in udp_options_test()
116 uv_udp_t h; in TEST_IMPL() local
122 ASSERT_OK(uv_udp_init(loop, &h)); in TEST_IMPL()
123 ASSERT_EQ(UV_EBADF, uv_udp_set_multicast_ttl(&h, 32)); in TEST_IMPL()
124 ASSERT_EQ(UV_EBADF, uv_udp_set_broadcast(&h, 1)); in TEST_IMPL()
126 ASSERT_EQ(UV_ENOTSUP, uv_udp_set_ttl(&h, 1)); in TEST_IMPL()
128 ASSERT_EQ(UV_EBADF, uv_udp_set_ttl(&h, 1)); in TEST_IMPL()
130 ASSERT_EQ(UV_EBADF, uv_udp_set_multicast_loop(&h, 1)); in TEST_IMPL()
135 ASSERT_EQ(UV_EBADF, uv_udp_set_multicast_interface(&h, "0.0.0.0")); in TEST_IMPL()
137 uv_close((uv_handle_t*) &h, NULL); in TEST_IMPL()