Lines Matching refs:rc
135 int rc; in new_conn() local
158 rc = uv_udp_connect(&conn->udp, sa); in new_conn()
161 rc = uv_tcp_connect(&conn->tcp_connect, &conn->tcp, sa, tcp_connect_done); in new_conn()
163 if (rc < 0) { in new_conn()
176 rc = setup_ssl(conn, hostname); in new_conn()
177 if (rc < 0) { in new_conn()
296 int srd, rc; in on_rx_push() local
310 rc = SSL_get_error(conn->ssl, srd); in on_rx_push()
311 if (rc == SSL_ERROR_WANT_READ) { in on_rx_push()
332 int rc; in handle_pending_writes() local
339 rc = try_write(conn, op); in handle_pending_writes()
340 if (rc <= 0) in handle_pending_writes()
357 int rc; in net_read_done() local
374 rc = handshake_ssl(conn); in net_read_done()
375 if (rc < 0) { in net_read_done()
376 fprintf(stderr, "handshake error: %d\n", rc); in net_read_done()
425 int rc, rd; in flush_write_buf() local
450 rc = uv_udp_send(&op->w, &conn->udp, &op->b, 1, NULL, net_write_done); in flush_write_buf()
452 rc = uv_write(&op->w, conn->stream, &op->b, 1, net_write_done); in flush_write_buf()
454 if (rc < 0) { in flush_write_buf()
472 int rc, rcx; in handshake_ssl() local
476 rc = SSL_do_handshake(conn->ssl); in handshake_ssl()
477 if (rc > 0) { in handshake_ssl()
485 rcx = SSL_get_error(conn->ssl, rc); in handshake_ssl()
550 int rc; in tcp_connect_done() local
558 rc = setup_ssl(conn, conn->hostname); in tcp_connect_done()
559 if (rc < 0) { in tcp_connect_done()
604 int rc, rcx; in try_write() local
608 rc = SSL_write(conn->ssl, op->buf + written, op->buf_len - written); in try_write()
609 if (rc <= 0) { in try_write()
610 rcx = SSL_get_error(conn->ssl, rc); in try_write()
621 written += rc; in try_write()
720 int rc = 1; in main() local
740 rc = getaddrinfo(argv[1], argv[2], &hints, &result); in main()
741 if (rc < 0) { in main()
752 rc = 0; in main()