Lines Matching refs:r

62   int r;  in cl_send_cb()  local
69 r = uv_udp_send(req, &client, &buf, 1, NULL, cl_send_cb); in cl_send_cb()
70 ASSERT_EQ(r, UV_EDESTADDRREQ); in cl_send_cb()
71 r = uv_udp_send(req, in cl_send_cb()
77 ASSERT_OK(r); in cl_send_cb()
107 int r; in TEST_IMPL() local
112 r = uv_udp_init(uv_default_loop(), &server); in TEST_IMPL()
113 ASSERT_OK(r); in TEST_IMPL()
115 r = uv_udp_bind(&server, (const struct sockaddr*) &lo_addr, 0); in TEST_IMPL()
116 ASSERT_OK(r); in TEST_IMPL()
118 r = uv_udp_recv_start(&server, alloc_cb, sv_recv_cb); in TEST_IMPL()
119 ASSERT_OK(r); in TEST_IMPL()
121 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
122 ASSERT_OK(r); in TEST_IMPL()
128 r = uv_udp_connect(&client, (const struct sockaddr*) &tmp_addr); in TEST_IMPL()
130 ASSERT_EQ(r, UV_EADDRNOTAVAIL); in TEST_IMPL()
132 ASSERT_OK(r); in TEST_IMPL()
133 r = uv_udp_connect(&client, NULL); in TEST_IMPL()
134 ASSERT_OK(r); in TEST_IMPL()
140 r = uv_udp_connect(&client, (const struct sockaddr*) &lo_addr); in TEST_IMPL()
141 ASSERT_OK(r); in TEST_IMPL()
142 r = uv_udp_connect(&client, (const struct sockaddr*) &ext_addr); in TEST_IMPL()
143 ASSERT_EQ(r, UV_EISCONN); in TEST_IMPL()
146 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL()
147 ASSERT_OK(r); in TEST_IMPL()
150 r = uv_udp_try_send(&client, &buf, 1, (const struct sockaddr*) &lo_addr); in TEST_IMPL()
151 ASSERT_EQ(r, UV_EISCONN); in TEST_IMPL()
152 r = uv_udp_try_send(&client, &buf, 1, NULL); in TEST_IMPL()
153 ASSERT_EQ(4, r); in TEST_IMPL()
154 r = uv_udp_try_send(&client, &buf, 1, (const struct sockaddr*) &ext_addr); in TEST_IMPL()
155 ASSERT_EQ(r, UV_EISCONN); in TEST_IMPL()
157 r = uv_udp_connect(&client, NULL); in TEST_IMPL()
158 ASSERT_OK(r); in TEST_IMPL()
159 r = uv_udp_connect(&client, NULL); in TEST_IMPL()
160 ASSERT_EQ(r, UV_ENOTCONN); in TEST_IMPL()
163 r = uv_udp_getpeername(&client, (struct sockaddr*) &tmp_addr, &addrlen); in TEST_IMPL()
164 ASSERT_EQ(r, UV_ENOTCONN); in TEST_IMPL()
167 r = uv_udp_try_send(&client, &buf, 1, (const struct sockaddr*) &lo_addr); in TEST_IMPL()
168 ASSERT_EQ(4, r); in TEST_IMPL()
169 r = uv_udp_try_send(&client, &buf, 1, NULL); in TEST_IMPL()
170 ASSERT_EQ(r, UV_EDESTADDRREQ); in TEST_IMPL()
173 r = uv_udp_connect(&client, (const struct sockaddr*) &lo_addr); in TEST_IMPL()
174 ASSERT_OK(r); in TEST_IMPL()
175 r = uv_udp_send(&req, in TEST_IMPL()
181 ASSERT_EQ(r, UV_EISCONN); in TEST_IMPL()
182 r = uv_udp_send(&req, &client, &buf, 1, NULL, cl_send_cb); in TEST_IMPL()
183 ASSERT_OK(r); in TEST_IMPL()