Lines Matching refs:accept_socket
93 SOCKET accept_socket;
135 * context->accept_socket may be in a disconnected but reusable
259 context->accept_socket = INVALID_SOCKET;
431 if (context->accept_socket == INVALID_SOCKET) {
432 context->accept_socket = socket(ss_listen.ss_family, SOCK_STREAM,
437 closesocket(context->accept_socket);
438 context->accept_socket = socket(ss_listen.ss_family, SOCK_STREAM,
443 if (context->accept_socket == INVALID_SOCKET)
444 context->accept_socket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
447 if (context->accept_socket == INVALID_SOCKET) {
469 if (!lpfnAcceptEx(nlsd, context->accept_socket, buf, len,
481 closesocket(context->accept_socket);
482 context->accept_socket = INVALID_SOCKET;
497 closesocket(context->accept_socket);
498 context->accept_socket = INVALID_SOCKET;
518 closesocket(context->accept_socket);
519 context->accept_socket = INVALID_SOCKET;
543 if ((context->accept_socket != INVALID_SOCKET) &&
544 !GetOverlappedResult((HANDLE)context->accept_socket,
550 closesocket(context->accept_socket);
551 context->accept_socket = INVALID_SOCKET;
556 closesocket(context->accept_socket);
557 context->accept_socket = INVALID_SOCKET;
563 if (context->accept_socket == INVALID_SOCKET) {
576 if (setsockopt(context->accept_socket, SOL_SOCKET,
614 if (context->accept_socket != INVALID_SOCKET)
615 closesocket(context->accept_socket);
642 context->accept_socket = accept(nlsd, context->sa_server,
645 if (context->accept_socket == INVALID_SOCKET) {
682 WSAEventSelect(context->accept_socket, 0, 0);
687 if (getsockname(context->accept_socket, context->sa_server,
693 if ((getpeername(context->accept_socket, context->sa_client,
701 sockinfo.os_sock = &context->accept_socket;
712 ioctlsocket(context->accept_socket, FIONBIO, &zero);
713 setsockopt(context->accept_socket, SOL_SOCKET, SO_RCVTIMEO,
715 setsockopt(context->accept_socket, SOL_SOCKET, SO_SNDTIMEO,
855 context->accept_socket = INVALID_SOCKET;
890 context->accept_socket = INVALID_SOCKET;
1253 closesocket(qhead->accept_socket);