Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-tcp-write-to-half-open-connection.c37 static uv_tcp_t tcp_peer; /* client socket as accept()-ed by server */ variable
51 r = uv_tcp_init(server->loop, &tcp_peer); in connection_cb()
54 r = uv_accept(server, (uv_stream_t*)&tcp_peer); in connection_cb()
57 r = uv_read_start((uv_stream_t*)&tcp_peer, alloc_cb, read_cb); in connection_cb()
63 r = uv_write(&write_req, (uv_stream_t*)&tcp_peer, &buf, 1, write_cb); in connection_cb()
83 uv_close((uv_handle_t*)&tcp_peer, NULL); in read_cb()

Completed in 11 milliseconds