Lines Matching refs:sockctrl
420 int sockctrl; in main() local
426 sockctrl = dup(0); in main()
427 if (sockctrl == -1) in main()
462 (void)daemon_serviceloop(sockctrl, 0, hostlist_copy, in main()
1123 SOCKET sockctrl; member
1136 SOCKET sockctrl; // keeps the socket ID for this control connection in accept_connection() local
1156 sockctrl = accept(listen_sock, (struct sockaddr *) &from, &fromlen); in accept_connection()
1158 if (sockctrl != INVALID_SOCKET) in accept_connection()
1198 if (WSAEventSelect(sockctrl, NULL, 0) == SOCKET_ERROR) in accept_connection()
1202 sock_close(sockctrl, NULL, 0); in accept_connection()
1205 if (ioctlsocket(sockctrl, FIONBIO, &off) == SOCKET_ERROR) in accept_connection()
1209 sock_close(sockctrl, NULL, 0); in accept_connection()
1224 sock_close(sockctrl, NULL, 0); in accept_connection()
1238 sock_close(sockctrl, NULL, 0); in accept_connection()
1241 params_copy->sockctrl = sockctrl; in accept_connection()
1251 sock_close(sockctrl, NULL, 0); in accept_connection()
1261 sock_close(sockctrl, NULL, 0); in accept_connection()
1299 (void)daemon_serviceloop(sockctrl, 0, hostlist_copy, in accept_connection()
1307 closesocket(sockctrl); in accept_connection()
1328 SOCKET sockctrl; // keeps the socket ID for this control connection in main_active() local
1360 …if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCK… in main_active()
1380 sock_close(sockctrl, NULL, 0); in main_active()
1387 activeclose = daemon_serviceloop(sockctrl, 1, in main_active()
1415 (void)daemon_serviceloop(params.sockctrl, 0, params.hostlist, in main_passive_serviceloop_thread()