![]() |
Flush() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: DNSSocket.h |
BOOL Flush();
Flush the data
try { //Are we connected ? if (m_aConnectionStatus!=csConnected) return TRUE; //Get the data WaitingRequests aData; aData=GetData(); //Do while we have data while (aData.pData) { //Protect the data CArray_ptr<char> pProtection(aData.pData); //Send it if (!m_pTCP->Send(aData.pData, aData.usSize)) { //Write the error ReportError("Flush","Failed to send!"); //Get the error return FALSE; } //Can we continue ? if (m_aConnectionStatus!=csConnected) aData.pData=NULL; else aData=GetData(); } //We are done return TRUE; } ERROR_HANDLER_RETURN("Flush",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |