Class CWhoisSocket::
SendURL()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ReceiveWhoisNext page: SetWhoisTimeout    Show member index
Private Function Declared in:
WhoisSocket.h

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

BOOL SendURL(
    const std::string& rURL);

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

Send the URL

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

try
{
    //Create the URL buffer
    char* pBuffer;
    pBuffer=new char[rURL.length()+10];

    //Copy it
    rURL.copy(pBuffer,rURL.length(),0);

    //Set the enter
    pBuffer[rURL.length()]=10;

    //Send it
    int iSendSize;
    iSendSize=Send(pBuffer,rURL.length()+1);

    //Delete the string
    delete [] pBuffer;

    //Did we send it
    return iSendSize!=GetErrorCode();
}
ERROR_HANDLER_RETURN("SendURL",FALSE)

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

Class Overview Class Overview  |  Public base class CTCPSocketAsync  |  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.