Home
last modified time | relevance | path

Searched refs:tcp_client (Results 1 – 10 of 10) sorted by relevance

/third_party/libuv/test/
Dtest-tcp-close-reset.c36 static uv_tcp_t tcp_client; variable
102 ASSERT((uv_tcp_t*)stream == &tcp_client); in read_cb2()
110 uv_read_start((uv_stream_t*) &tcp_client, alloc_cb, read_cb2); in connect_cb()
111 do_write(&tcp_client); in connect_cb()
113 do_close(&tcp_client); in connect_cb()
120 ASSERT(req->handle == (uv_stream_t*)&tcp_client); in write_cb()
127 ASSERT(handle == (uv_handle_t*) &tcp_client); in close_cb()
136 ASSERT(req->handle == (uv_stream_t*) &tcp_client); in shutdown_cb()
183 static void do_connect(uv_loop_t* loop, uv_tcp_t* tcp_client) { in do_connect() argument
189 r = uv_tcp_init(loop, tcp_client); in do_connect()
[all …]
Dtest-readable-on-eof.c26 static uv_tcp_t tcp_client; variable
65 r = uv_read_start((uv_stream_t*) &tcp_client, alloc_cb, read_cb); in read_cb()
77 read_cb((uv_stream_t*) &tcp_client, UV_EOF, NULL); in connect_cb()
82 (uv_stream_t*) &tcp_client, in connect_cb()
94 ASSERT_EQ(uv_tcp_init(&loop, &tcp_client), 0); in TEST_IMPL()
97 &tcp_client, in TEST_IMPL()
Dbenchmark-tcp-write-batch.c38 static uv_tcp_t tcp_client; variable
58 ASSERT(req->handle == (uv_stream_t*)&tcp_client); in connect_cb()
81 ASSERT(req->handle == (uv_stream_t*)&tcp_client); in shutdown_cb()
92 ASSERT(handle == (uv_handle_t*)&tcp_client); in close_cb()
117 r = uv_tcp_init(loop, &tcp_client); in BENCHMARK_IMPL()
121 &tcp_client, in BENCHMARK_IMPL()
Dtest-not-readable-nor-writable-on-read-error.c26 static uv_tcp_t tcp_client; variable
70 r = uv_read_start((uv_stream_t*) &tcp_client, alloc_cb, read_cb); in connect_cb()
76 (uv_stream_t*) &tcp_client, in connect_cb()
88 ASSERT(0 == uv_tcp_init(&loop, &tcp_client)); in TEST_IMPL()
91 &tcp_client, in TEST_IMPL()
Dtest-tcp-write-after-connect.c28 uv_tcp_t tcp_client; variable
54 ASSERT(0 == uv_tcp_init(&loop, &tcp_client)); in TEST_IMPL()
57 &tcp_client, in TEST_IMPL()
63 (uv_stream_t *)&tcp_client, in TEST_IMPL()
Dtest-tcp-write-to-half-open-connection.c36 static uv_tcp_t tcp_client; variable
95 uv_close((uv_handle_t*)&tcp_client, NULL); in connect_cb()
124 r = uv_tcp_init(loop, &tcp_client); in TEST_IMPL()
128 &tcp_client, in TEST_IMPL()
/third_party/python/Lib/test/test_asyncio/
Dfunctional.py69 def tcp_client(self, client_prog, member in FunctionalTestCaseMixin
92 return self.tcp_client(*args, family=socket.AF_UNIX, **kwargs)
Dtest_server.py57 with self.tcp_client(lambda sock: client(sock, addr)):
Dtest_sslproto.py577 with self.tcp_client(lambda sock: client(sock, addr),
/third_party/grpc/
DBUILD.gn1141 "${GRPC_DIR}/src/core/lib/iomgr/tcp_client.cc",
1142 "${GRPC_DIR}/src/core/lib/iomgr/tcp_client.h",