Class CTCPRelay::
CClientSocket::OnSocketConnect()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: CClientSocket::OnSocketCloseNext page: CClientSocket::OnSocketReceive    Show member index
Private Function
(Not Declared)
Declared in:
TCPRelay.h

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

BOOL CClientSocket::OnSocketConnect(
    int iErrorCode);

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

try
{
    //Do we have an error
    if (iErrorCode)
    {
        //Delete the other socket
        m_pSocket->DeleteSocketFromThread();
        m_pSocket=NULL;

        //Delete ourself from our thread
        DeleteSocketFromThread();

        //Done
        return FALSE;
    }

    //We are connected
    //Create the connection
    m_aConnectionID=m_pFather->NewConnection(m_pSocket,
                                             this);

    //Set the other socket's ID
    m_pSocket->SetConnectionID(m_aConnectionID);

    //Done
    return TRUE;
}
ERROR_HANDLER_RETURN("OnSocketConnect",FALSE)

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

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