Lines Matching refs:tcp
35 uv_tcp_t tcp; member
56 static void buf_alloc(uv_handle_t* tcp, size_t size, uv_buf_t* buf) { in buf_alloc() argument
106 if (uv_write(req, (uv_stream_t*) &pinger->tcp, &buf, 1, pinger_write_cb)) { in pinger_write_ping()
124 static void pinger_read_cb(uv_stream_t* tcp, in pinger_read_cb() argument
130 pinger = (pinger_t*)tcp->data; in pinger_read_cb()
140 uv_close((uv_handle_t*)tcp, pinger_close_cb); in pinger_read_cb()
153 (uv_stream_t*) tcp, in pinger_read_cb()
192 r = uv_tcp_init(loop, &pinger->tcp); in pinger_new()
195 pinger->tcp.data = pinger; in pinger_new()
197 ASSERT_OK(uv_tcp_bind(&pinger->tcp, in pinger_new()
202 &pinger->tcp, in pinger_new()