Lines Matching refs:socket
75 dispsocketlist_t *sock_table; /*%< socket table */
176 isc_socket_t *socket;
191 * destination addresses) using the SO_REUSEADDR socket option.
219 * socket events well when using separate dispatch sockets. We use the
223 isc_socket_t *socket; /*%< isc socket attached to */
689 disp->socket, disp->task[0]); /* XXXX */
691 if (disp->socket != NULL)
692 isc_socket_detach(&disp->socket);
775 * Find a dispsocket for socket address 'dest', and port number 'port'.
800 * Make a new socket for a single dispatch with a random port number.
835 sock = dispsock->socket;
836 dispsock->socket = NULL;
843 dispsock->socket = NULL;
856 * Pick up a random UDP port and open a new socket with it. Avoid
895 dispsock->socket = sock;
917 * Destroy a dedicated dispatch socket.
936 if (dispsock->socket != NULL)
937 isc_socket_detach(&dispsock->socket);
953 * Deactivate a dedicated dispatch socket. Move it to the inactive list for
976 result = isc_socket_close(dispsock->socket);
999 * Find an entry for query ID 'id', socket address 'dest', and port number
1164 * just after receiving a response. Since this socket is
1167 * we can (and should) deactivate the socket right now.
1197 * connected socket. It makes no sense to
1215 "odd socket result in udp_recv(): %s",
1272 * socket, we've already identified it and we can skip the search; but
1293 "response to an exclusive socket doesn't match");
1309 * Check that the socket types and ports match.
1322 * Note under Linux a packet can be sent out via IPv4 socket
1323 * and the response be received via a IPv6 socket.
1387 * deactivate this socket anyway (since we cannot start
1589 isc_socket_t *socket;
1608 socket = dispsock->socket;
1610 socket = disp->socket;
1611 INSIST(socket != NULL);
1623 res = isc_socket_recv(socket, ®ion, 1,
1631 res = isc_socket_recv(socket, ®ion, 1,
2086 /* Create or adjust socket pool */
2210 REQUIRE(disp->socket != NULL);
2221 !portavailable(disp->mgr, disp->socket, NULL)) {
2239 result = isc_socket_getsockname(disp->socket, &sockaddr);
2538 disp->socket = NULL;
2539 isc_socket_attach(sock, &disp->socket);
2558 dns_tcpmsg_init(mgr->mctx, disp->socket, &disp->tcpmsg);
2582 isc_socket_detach(&disp->socket);
2641 isc_socket_cancel(disp->socket, disp->task[0],
2842 disp->socket = sock;
2880 if (disp->socket != NULL)
2881 dispatch_log(disp, LVL(90), "created socket %p", disp->socket);
2893 if (disp->socket != NULL)
2894 isc_socket_detach(&disp->socket);
2937 isc_socket_cancel(disp->socket, disp->task[0],
2942 isc_socket_cancel(dispsock->socket, dispsock->task,
3036 * Get a separate UDP socket with a random port number.
3209 isc_socket_cancel(disp->socket, disp->task[0],
3214 isc_socket_cancel(dispsock->socket, dispsock->task,
3253 isc_socket_cancel(res->dispsocket->socket,
3332 return (disp->socket);
3340 return (resp->dispsocket->socket);
3416 isc_socket_cancel(disp->socket, disp->task[0],