sock 204 include/crm_internal.h int *timer_id, void *userdata, void (*callback) (void *userdata, int sock)); sock 229 include/crm_internal.h void *crm_create_anon_tls_session(int sock, int type, void *credentials); sock 204 lib/cib/cib_remote.c int sock; sock 222 lib/cib/cib_remote.c sock = crm_remote_tcp_connect(private->server, private->port); sock 223 lib/cib/cib_remote.c if (sock < 0) { sock 229 lib/cib/cib_remote.c connection->tcp_socket = sock; sock 241 lib/cib/cib_remote.c connection->tls_session = crm_create_anon_tls_session(sock, GNUTLS_CLIENT, anon_cred_c); sock 305 lib/cib/cib_remote.c mainloop_add_fd("cib-remote", G_PRIORITY_HIGH, sock, cib, sock 267 lib/common/remote.c crm_send_plaintext(int sock, const char *buf, size_t len) sock 280 lib/common/remote.c sock, (unsigned long long) len); sock 282 lib/common/remote.c rc = write(sock, unsent, len); sock 458 lib/common/remote.c int sock = 0; sock 467 lib/common/remote.c sock = GPOINTER_TO_INT(sock_ptr); sock 472 lib/common/remote.c sock = remote->tcp_socket; sock 477 lib/common/remote.c if (sock <= 0) { sock 485 lib/common/remote.c fds.fd = sock; sock 671 lib/common/remote.c int sock; sock 673 lib/common/remote.c void (*callback) (void *userdata, int sock); sock 683 lib/common/remote.c int sock = cb_data->sock; sock 695 lib/common/remote.c FD_SET(sock, &rset); sock 698 lib/common/remote.c crm_trace("fd %d: checking to see if connect finished", sock); sock 699 lib/common/remote.c cb_arg = select(sock + 1, &rset, &wset, NULL, &ts); sock 711 lib/common/remote.c crm_trace("fd %d: select failed %d connect dispatch ", sock, cb_arg); sock 717 lib/common/remote.c crm_debug("fd %d: timeout during select", sock); sock 721 lib/common/remote.c crm_trace("fd %d: select returned success", sock); sock 726 lib/common/remote.c if (FD_ISSET(sock, &rset) || FD_ISSET(sock, &wset)) { sock 727 lib/common/remote.c if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { sock 729 lib/common/remote.c crm_trace("fd %d: call to getsockopt failed", sock); sock 733 lib/common/remote.c crm_trace("fd %d: error returned from getsockopt: %d", sock, error); sock 745 lib/common/remote.c crm_trace("fd %d: connected", sock); sock 747 lib/common/remote.c cb_arg = cb_data->sock; sock 748 lib/common/remote.c cb_data->sock = 0; sock 750 lib/common/remote.c close(sock); sock 766 lib/common/remote.c internal_tcp_connect_async(int sock, sock 768 lib/common/remote.c int *timer_id, void *userdata, void (*callback) (void *userdata, int sock)) sock 775 lib/common/remote.c rc = crm_set_nonblocking(sock); sock 779 lib/common/remote.c close(sock); sock 783 lib/common/remote.c rc = connect(sock, addr, addrlen); sock 792 lib/common/remote.c cb_data->sock = sock; sock 814 lib/common/remote.c interval, sock); sock 824 lib/common/remote.c internal_tcp_connect(int sock, const struct sockaddr *addr, socklen_t addrlen) sock 826 lib/common/remote.c int rc = connect(sock, addr, addrlen); sock 835 lib/common/remote.c rc = crm_set_nonblocking(sock); sock 861 lib/common/remote.c void (*callback) (void *userdata, int sock)) sock 869 lib/common/remote.c int sock = -ENOTCONN; sock 900 lib/common/remote.c sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP); sock 901 lib/common/remote.c if (sock == -1) { sock 904 lib/common/remote.c sock = -ENOTCONN; sock 922 lib/common/remote.c (sock, rp->ai_addr, rp->ai_addrlen, timeout, timer_id, userdata, callback) == 0) { sock 926 lib/common/remote.c } else if (internal_tcp_connect(sock, rp->ai_addr, rp->ai_addrlen) == 0) { sock 930 lib/common/remote.c close(sock); sock 931 lib/common/remote.c sock = -ENOTCONN; sock 939 lib/common/remote.c return sock; sock 97 lib/lrmd/lrmd_client.c int sock; sock 524 lib/lrmd/lrmd_client.c if (native->sock) { sock 525 lib/lrmd/lrmd_client.c close(native->sock); sock 539 lib/lrmd/lrmd_client.c native->sock = 0; sock 542 lib/lrmd/lrmd_client.c native->sock = 0; sock 1118 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int sock) sock 1127 lib/lrmd/lrmd_client.c int rc = sock; sock 1144 lib/lrmd/lrmd_client.c native->sock = sock; sock 1159 lib/lrmd/lrmd_client.c native->remote->tls_session = create_psk_tls_session(sock, GNUTLS_CLIENT, native->psk_cred_c); sock 1179 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); sock 1191 lib/lrmd/lrmd_client.c int sock = 0; sock 1196 lib/lrmd/lrmd_client.c sock = crm_remote_tcp_connect_async(native->server, native->port, timeout, sock 1198 lib/lrmd/lrmd_client.c if (sock < 0) { sock 1199 lib/lrmd/lrmd_client.c return sock; sock 1201 lib/lrmd/lrmd_client.c native->sock = sock; sock 1216 lib/lrmd/lrmd_client.c int sock; sock 1221 lib/lrmd/lrmd_client.c sock = crm_remote_tcp_connect(native->server, native->port); sock 1222 lib/lrmd/lrmd_client.c if (sock < 0) { sock 1228 lib/lrmd/lrmd_client.c native->sock = sock; sock 1240 lib/lrmd/lrmd_client.c native->remote->tls_session = create_psk_tls_session(sock, GNUTLS_CLIENT, native->psk_cred_c); sock 1255 lib/lrmd/lrmd_client.c *fd = sock; sock 1262 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); sock 1375 lib/lrmd/lrmd_client.c } else if (native->sock) { sock 1376 lib/lrmd/lrmd_client.c close(native->sock); sock 1377 lib/lrmd/lrmd_client.c native->sock = 0;