Lines Matching refs:con

79 static struct conn *con = NULL;  variable
84 if (con == NULL) return; in close_conn()
86 if (con->ssl) { in close_conn()
87 SSL_shutdown(con->ssl); in close_conn()
88 SSL_free(con->ssl); in close_conn()
90 if (con->ssl_ctx) in close_conn()
91 SSL_CTX_free(con->ssl_ctx); in close_conn()
93 if (con->sock > 0) close(con->sock); in close_conn()
94 free(con); in close_conn()
95 con = NULL; in close_conn()
791 ssize_t nw = con->write((void*)con, ptr + offset, len - offset); in send_ascii_command()
813 ssize_t nr = con->read(con, buffer + offset, 1); in read_ascii_response()
835 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_92()
836 assert(con); in test_issue_92()
848 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_92()
849 assert(con); in test_issue_92()
887 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_102()
888 assert(con); in test_issue_102()
892 assert(con->read(con, buffer, sizeof(buffer)) == 0); in test_issue_102()
895 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_102()
896 assert(con); in test_issue_102()
925 assert(con->read(con, buffer, sizeof(buffer)) == 0); in test_issue_102()
928 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_102()
929 assert(con); in test_issue_102()
937 con = connect_server("127.0.0.1", port, false, enable_ssl); in start_memcached_server()
938 assert(con); in start_memcached_server()
955 con = connect_server("127.0.0.1", port, false, enable_ssl); in shutdown_memcached_server()
956 assert(con); in shutdown_memcached_server()
960 assert(con->read(con, buffer, sizeof(buffer)) == 0); in shutdown_memcached_server()
998 ssize_t nw = con->write(con, ptr + offset, num_bytes); in safe_send()
1019 ssize_t nr = con->read(con, ((char*)buf) + offset, len - offset); in safe_recv()
1367 assert(con->read(con, buffer.bytes, sizeof(buffer.bytes)) == 0); in test_binary_quit_impl()
1369 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_binary_quit_impl()
1370 assert(con); in test_binary_quit_impl()
2223 con = connect_server("127.0.0.1", port, false, enable_ssl); in test_issue_101()
2224 assert(con); in test_issue_101()