Lines Matching refs:r
34 int i, r; in udp_options_test() local
38 r = uv_udp_init(loop, &h); in udp_options_test()
39 ASSERT_OK(r); in udp_options_test()
43 r = uv_udp_bind(&h, addr, 0); in udp_options_test()
44 ASSERT_OK(r); 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()
50 ASSERT_OK(r); in udp_options_test()
54 r = uv_udp_set_ttl(&h, i); in udp_options_test()
57 ASSERT_OK(r); in udp_options_test()
59 ASSERT_EQ(r, UV_ENOTSUP); in udp_options_test()
61 ASSERT_OK(r); in udp_options_test()
66 r = uv_udp_set_ttl(&h, invalid_ttls[i]); in udp_options_test()
67 ASSERT_EQ(r, UV_EINVAL); 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()
74 ASSERT_OK(r); in udp_options_test()
78 r = uv_udp_set_multicast_ttl(&h, i); in udp_options_test()
79 ASSERT_OK(r); in udp_options_test()
83 r = uv_udp_set_multicast_ttl(&h, 256); in udp_options_test()
84 ASSERT_EQ(r, UV_EINVAL); in udp_options_test()
87 r = uv_run(loop, UV_RUN_DEFAULT); in udp_options_test()
88 ASSERT_OK(r); in udp_options_test()