Lines Matching defs:adev
300 isc_socket_newconnev_t *adev; /* accept() done event */
367 static void send_acceptdone_event(isc_socket_t *sock, isc_socket_newconnev_t **adev);
1991 send_acceptdone_event(isc_socket_t *sock, isc_socket_newconnev_t **adev) {
1994 INSIST(adev != NULL && *adev != NULL);
1996 task = (*adev)->ev_sender;
1997 (*adev)->ev_sender = sock;
1999 if (ISC_LINK_LINKED(*adev, ev_link))
2000 ISC_LIST_DEQUEUE(sock->accept_list, *adev, ev_link);
2002 isc_task_sendanddetach(&task, (isc_event_t **)adev);
2037 isc_socket_newconnev_t *adev;
2060 adev = lpo->adev;
2065 if (!acceptdone_is_active(sock, adev))
2068 nsock = adev->newsocket;
2073 ISC_LIST_UNLINK(sock->accept_list, adev, ev_link);
2083 memmove(&adev->address.type, remoteaddr, remoteaddr_len);
2084 adev->address.length = remoteaddr_len;
2085 nsock->address = adev->address;
2086 nsock->pf = adev->address.type.sa.sa_family;
2092 result = make_nonblock(adev->newsocket->fd);
2098 use_min_mtu(adev->newsocket);
2120 adev->result = result;
2121 send_acceptdone_event(sock, &adev);
2432 isc_socket_t *nsock = lpo->adev->newsocket;
2575 if (acceptdone_is_active(sock, lpo->adev)) {
2590 if (acceptdone_is_active(sock, lpo->adev)) {
2591 closesocket(lpo->adev->newsocket->fd);
2592 lpo->adev->newsocket->fd = INVALID_SOCKET;
2593 lpo->adev->newsocket->references--;
2594 free_socket(&lpo->adev->newsocket, __LINE__);
2595 lpo->adev->result = isc_result;
2598 send_acceptdone_event(sock, &lpo->adev);
3386 isc_socket_newconnev_t *adev;
3416 adev = (isc_socket_newconnev_t *)
3418 action, arg, sizeof(*adev));
3419 if (adev == NULL) {
3423 ISC_LINK_INIT(adev, ev_link);
3427 isc_event_free((isc_event_t **)&adev);
3438 isc_event_free((isc_event_t **)&adev);
3450 isc_event_free(ISC_EVENT_PTR(&adev));
3456 adev->ev_sender = ntask;
3457 adev->newsocket = nsock;
3471 lpo->adev = adev;
3492 ISC_LIST_ENQUEUE(sock->accept_list, adev, ev_link);