ssock 90 daemons/based/based_remote.c int *ssock = NULL; ssock 127 daemons/based/based_remote.c ssock = malloc(sizeof(int)); ssock 128 daemons/based/based_remote.c if(ssock == NULL) { ssock 133 daemons/based/based_remote.c *ssock = socket(AF_INET, SOCK_STREAM, 0); ssock 134 daemons/based/based_remote.c if (*ssock == -1) { ssock 136 daemons/based/based_remote.c free(ssock); ssock 142 daemons/based/based_remote.c rc = setsockopt(*ssock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)); ssock 153 daemons/based/based_remote.c if (bind(*ssock, (struct sockaddr *)&saddr, sizeof(saddr)) == -1) { ssock 155 daemons/based/based_remote.c close(*ssock); ssock 156 daemons/based/based_remote.c free(ssock); ssock 159 daemons/based/based_remote.c if (listen(*ssock, 10) == -1) { ssock 161 daemons/based/based_remote.c close(*ssock); ssock 162 daemons/based/based_remote.c free(ssock); ssock 166 daemons/based/based_remote.c mainloop_add_fd("cib-remote", G_PRIORITY_DEFAULT, *ssock, ssock, &remote_listen_fd_callbacks); ssock 169 daemons/based/based_remote.c return *ssock; ssock 284 daemons/based/based_remote.c int ssock = *(int *)data; ssock 297 daemons/based/based_remote.c csock = accept(ssock, (struct sockaddr *)&addr, &laddr); ssock 305 daemons/based/based_remote.c ((ssock == remote_tls_fd)? "secure" : "clear-text"), ipstr); ssock 320 daemons/based/based_remote.c if (ssock == remote_tls_fd) { ssock 40 daemons/execd/remoted_tls.c static int ssock = -1; ssock 215 daemons/execd/remoted_tls.c CRM_CHECK(ssock >= 0, return TRUE); ssock 217 daemons/execd/remoted_tls.c if (pcmk__accept_remote_connection(ssock, &csock) != pcmk_rc_ok) { ssock 346 daemons/execd/remoted_tls.c CRM_CHECK(ssock == -1, return ssock); ssock 388 daemons/execd/remoted_tls.c ssock = bind_and_listen(iter); ssock 390 daemons/execd/remoted_tls.c if (ssock != -1) { ssock 401 daemons/execd/remoted_tls.c if (ssock >= 0) { ssock 402 daemons/execd/remoted_tls.c mainloop_add_fd("pacemaker-remote-server", G_PRIORITY_DEFAULT, ssock, ssock 408 daemons/execd/remoted_tls.c return ssock; ssock 419 daemons/execd/remoted_tls.c if (ssock >= 0) { ssock 420 daemons/execd/remoted_tls.c close(ssock); ssock 421 daemons/execd/remoted_tls.c ssock = -1; ssock 24 include/crm/common/remote_internal.h int pcmk__accept_remote_connection(int ssock, int *csock); ssock 1207 lib/common/remote.c pcmk__accept_remote_connection(int ssock, int *csock) ssock 1216 lib/common/remote.c *csock = accept(ssock, (struct sockaddr *)&addr, &laddr);