Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Application::SDash::AlertRelay::AcceptWithoutBlocking ( SOCKET *  listenSocket,
SOCKET *  clientSocket 
) [inline, private]

Definition at line 191 of file AlertRelay.h.

Referenced by Relay().

00192     {
00193         *clientSocket = accept(*listenSocket, NULL, NULL);
00194         int err = WSAGetLastError();
00195         if (*clientSocket == INVALID_SOCKET) 
00196         {
00197             if (err == WSAEWOULDBLOCK)
00198             {
00199                 printf("No pending connection requests\n");
00200             }
00201             else
00202             {
00203                 printf("accept failed: %d\n", err);
00204                 return 1;
00205             }
00206         }
00207 
00208         return 0;
00209     }


Generated on Fri Mar 19 10:48:18 2010 for ImpalaSrc by  doxygen 1.5.1