Lines Matching refs:r
42 int r; in on_connection() local
49 r = uv_tcp_init_ex(server->loop, handle, AF_INET); in on_connection()
50 ASSERT_OK(r); in on_connection()
52 r = uv_accept(server, (uv_stream_t*)handle); in on_connection()
53 ASSERT_EQ(r, UV_EBUSY); in on_connection()
62 int r; in tcp_listener() local
66 r = uv_tcp_init(loop, server); in tcp_listener()
67 ASSERT_OK(r); in tcp_listener()
69 r = uv_tcp_bind(server, (const struct sockaddr*) &addr, 0); in tcp_listener()
70 ASSERT_OK(r); in tcp_listener()
72 r = uv_listen((uv_stream_t*) server, 128, on_connection); in tcp_listener()
73 ASSERT_OK(r); in tcp_listener()
79 int r; in tcp_connector() local
83 r = uv_tcp_init(loop, client); in tcp_connector()
84 ASSERT_OK(r); in tcp_connector()
86 r = uv_tcp_connect(req, in tcp_connector()
90 ASSERT_OK(r); in tcp_connector()
99 int r, namelen; in TEST_IMPL() local
103 r = uv_tcp_init_ex(uv_default_loop(), &client, AF_INET); in TEST_IMPL()
104 ASSERT_OK(r); in TEST_IMPL()
106 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL()
107 ASSERT_OK(r); in TEST_IMPL()
113 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
114 ASSERT_OK(r); in TEST_IMPL()
120 r = uv_tcp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
121 ASSERT_OK(r); in TEST_IMPL()
124 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
125 ASSERT_OK(r); in TEST_IMPL()
142 int r; in TEST_IMPL() local
149 r = uv_tcp_init_ex(uv_default_loop(), &client, AF_INET6); in TEST_IMPL()
150 ASSERT_OK(r); in TEST_IMPL()
152 r = uv_fileno((const uv_handle_t*) &client, &fd); in TEST_IMPL()
153 ASSERT_OK(r); in TEST_IMPL()
162 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
163 ASSERT_OK(r); in TEST_IMPL()
170 r = uv_tcp_bind(&client, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
172 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
174 ASSERT_EQ(r, UV_EFAULT); in TEST_IMPL()
187 int r; in TEST_IMPL() local
189 r = uv_tcp_init_ex(uv_default_loop(), &client, 47); in TEST_IMPL()
190 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
192 r = uv_tcp_init_ex(uv_default_loop(), &client, 1024); in TEST_IMPL()
193 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()