![]() |
Flush() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: DNSSocket.h |
DeclarationBOOL Flush();
DescriptionFlush the data
Function Body
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)
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |