Class CSocketPool::
Connect()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ClearNext page: Connect    Show member index
Public Function Declared in:
SocketPool.h

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

BOOL Connect(
    const std::string& rAddress,
    unsigned short usPort);

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

Add an address to connect to

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

try
{
    //Allocate the socket
    CSocketPoolSocket* pSocket;

    //Do we have an allocator?
    if (!m_pAllocator)
    {
        //Report it
        ReportError("Connect","No allocator!");

        //Exit
        return FALSE;
    }

    //Allocate it
    pSocket=(*m_pAllocator)(this);

    //Try to connect
    return Connect(rAddress,
                   usPort,
                   pSocket);
}
ERROR_HANDLER_RETURN("Connect",FALSE)

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