Class KomodiaDNS::CDNSSocket::
AddData()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: m_strDNSServerNext page: CDNSSocket    Show member index
Private Function Declared in:
DNSSocket.h

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

void AddData(
    const char* pData,
    unsigned short usSize,
    LPVOID lpData);

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

Add data to the buffer

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

try
{
    //Is it legal ?
    if (!pData ||
        !usSize)
    {
        //Report it
        ReportError("AddData","Recieved null data!");

        //Exit
        return;
    }

    //Perpare the data
    WaitingRequests aData;

    //Copy the memory
    aData.pData=new char[usSize];
    memcpy(aData.pData,
           pData,
           usSize);

    //Rest of the data
    aData.lpData=lpData;
    aData.usSize=usSize;

    //Lock first
    CCriticalAutoRelease aRelease(m_pCSectionDeque);

    //Insert it
    m_aPendingData.push_back(aData);
}
ERROR_HANDLER("AddData")

'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.