Class KomodiaDNS::CDNSSocket::
SocketReceive()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SocketErrorNext page: ThreadProc    Show member index
Public Function Declared in:
DNSSocket.h

'Declaration' icon -- Shortcut to top of page. Declaration

CDNSAnswers * SocketReceive(
    char* pBuffer,
    int iBufferLengh,
    BOOL bTCP=FALSE);

'Description' icon -- Shortcut to top of page. Description

When we recieve an event

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Save the buffer
    char* pOriginalBuffer;
    pOriginalBuffer=pBuffer;

    //Check is it TCP
    if (bTCP)
    {
        //Adjust the buffer
        pBuffer+=2;
        iBufferLengh-=2;

        //Try to flush, if we have any ?
        if (!Flush())
            //Report it
            ReportError("SocketReceive","Failed to flush!");
    }

    //Parse the answer
    return ParseAnswer(pBuffer,
                       pOriginalBuffer,
                       iBufferLengh,
                       !m_bAsync,
                       bTCP);
}
ERROR_HANDLER_RETURN("SocketReceive",NULL)

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.