Lines Matching refs:r
43 int r = WSAStartup(MAKEWORD(2, 2), &wsa_data); in startup() local
44 ASSERT_OK(r); in startup()
63 int r = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof yes); in create_udp_socket() local
64 ASSERT_OK(r); in create_udp_socket()
73 int r; in close_socket() local
75 r = closesocket(sock); in close_socket()
77 r = close(sock); in close_socket()
79 ASSERT_OK(r); in close_socket()
104 int r; in recv_cb() local
122 r = uv_udp_recv_stop(handle); in recv_cb()
123 ASSERT_OK(r); in recv_cb()
143 int r; in TEST_IMPL() local
150 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
151 ASSERT_OK(r); in TEST_IMPL()
153 r = uv_udp_open(&client, sock); in TEST_IMPL()
154 ASSERT_OK(r); in TEST_IMPL()
156 r = uv_udp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
157 ASSERT_OK(r); in TEST_IMPL()
159 r = uv_udp_recv_start(&client, alloc_cb, recv_cb); in TEST_IMPL()
160 ASSERT_OK(r); in TEST_IMPL()
162 r = uv_udp_send(&send_req, in TEST_IMPL()
168 ASSERT_OK(r); in TEST_IMPL()
172 r = uv_udp_init(uv_default_loop(), &client2); in TEST_IMPL()
173 ASSERT_OK(r); in TEST_IMPL()
175 r = uv_udp_open(&client2, sock); in TEST_IMPL()
176 ASSERT_EQ(r, UV_EEXIST); in TEST_IMPL()
199 int r; in TEST_IMPL() local
205 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
206 ASSERT_OK(r); in TEST_IMPL()
208 r = uv_udp_open(&client, sock1); in TEST_IMPL()
209 ASSERT_OK(r); in TEST_IMPL()
211 r = uv_udp_open(&client, sock2); in TEST_IMPL()
212 ASSERT_EQ(r, UV_EBUSY); in TEST_IMPL()
226 int r; in TEST_IMPL() local
233 r = bind(sock, (struct sockaddr*) &addr, sizeof(addr)); in TEST_IMPL()
234 ASSERT_OK(r); in TEST_IMPL()
236 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
237 ASSERT_OK(r); in TEST_IMPL()
239 r = uv_udp_open(&client, sock); in TEST_IMPL()
240 ASSERT_OK(r); in TEST_IMPL()
242 r = uv_udp_recv_start(&client, alloc_cb, recv_cb); in TEST_IMPL()
243 ASSERT_OK(r); in TEST_IMPL()
258 int r; in TEST_IMPL() local
265 r = uv_udp_init(uv_default_loop(), &client); in TEST_IMPL()
266 ASSERT_OK(r); in TEST_IMPL()
268 r = connect(sock, (const struct sockaddr*) &addr, sizeof(addr)); in TEST_IMPL()
269 ASSERT_OK(r); in TEST_IMPL()
271 r = uv_udp_open(&client, sock); in TEST_IMPL()
272 ASSERT_OK(r); in TEST_IMPL()
274 r = uv_udp_init(uv_default_loop(), &server); in TEST_IMPL()
275 ASSERT_OK(r); in TEST_IMPL()
277 r = uv_udp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
278 ASSERT_OK(r); in TEST_IMPL()
280 r = uv_udp_recv_start(&server, alloc_cb, recv_cb); in TEST_IMPL()
281 ASSERT_OK(r); in TEST_IMPL()
283 r = uv_udp_send(&send_req, in TEST_IMPL()
289 ASSERT_OK(r); in TEST_IMPL()
312 int r; in TEST_IMPL() local
328 r = uv_udp_init(loop, &handle); in TEST_IMPL()
329 ASSERT_OK(r); in TEST_IMPL()
330 r = uv_udp_open(&handle, fd); in TEST_IMPL()
331 ASSERT_OK(r); in TEST_IMPL()
334 r = uv_udp_send(&req, in TEST_IMPL()
340 ASSERT_OK(r); in TEST_IMPL()