Lines Matching refs:p
143 printf("read_cb %d\n", p->i); in read_cb()
162 conn_rec* p = (conn_rec*)handle->data; in close_cb() local
168 printf("close_cb %d\n", p->i); in close_cb()
172 p->make_connect(p); in close_cb()
195 static void tcp_make_connect(conn_rec* p) { in tcp_make_connect() argument
200 tp = (tcp_conn_rec*) p; in tcp_make_connect()
202 r = uv_tcp_init(loop, (uv_tcp_t*)&p->stream); in tcp_make_connect()
208 (uv_tcp_t*) &p->stream, in tcp_make_connect()
217 printf("make connect %d\n", p->i); in tcp_make_connect()
220 p->conn_req.data = p; in tcp_make_connect()
221 p->write_req.data = p; in tcp_make_connect()
222 p->stream.data = p; in tcp_make_connect()
226 static void pipe_make_connect(conn_rec* p) { in pipe_make_connect() argument
229 r = uv_pipe_init(loop, (uv_pipe_t*)&p->stream, 0); in pipe_make_connect()
232 uv_pipe_connect(&((pipe_conn_rec*) p)->conn_req, in pipe_make_connect()
233 (uv_pipe_t*) &p->stream, in pipe_make_connect()
238 printf("make connect %d\n", p->i); in pipe_make_connect()
241 p->conn_req.data = p; in pipe_make_connect()
242 p->write_req.data = p; in pipe_make_connect()
243 p->stream.data = p; in pipe_make_connect()