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

int Impala::Application::SDash::AlertRelay::CloseSockets (  )  [inline, private]

Definition at line 211 of file AlertRelay.h.

References mClientSocket, and mListenSocket.

Referenced by ~AlertRelay().

00212     {
00213         // No longer need server socket
00214         closesocket(mListenSocket);
00215 
00216         if (mClientSocket != INVALID_SOCKET)
00217         {
00218             // shutdown the connection since we're done
00219             int iResult = shutdown(mClientSocket, SD_SEND);
00220             if (iResult == SOCKET_ERROR) {
00221                 printf("shutdown failed: %d\n", WSAGetLastError());
00222                 closesocket(mClientSocket);
00223                 WSACleanup();
00224                 return 1;
00225             }
00226 
00227             // cleanup
00228             closesocket(mClientSocket);
00229         }
00230 
00231         WSACleanup();
00232         return 0;
00233     }


Generated on Thu Jan 13 09:15:56 2011 for ImpalaSrc by  doxygen 1.5.1