Пример #1
0
void CTCPManager::HandleEvent ( unsigned int uiID, LPARAM lType )
{
    // Call the CTCP socket's event handler that's associated with the uiID argument
    if ( m_pSocket[uiID] != NULL )
    {
        // We know it's a derived class for sure.. so static_cast it without any error checking
        CTCPClientSocketImpl* pSocket = static_cast < CTCPClientSocketImpl* > ( m_pSocket[uiID] );
        pSocket->FireEvent ( lType );
    }
}
Пример #2
0
void CTCPManager::HandleEvent ( unsigned int uiInID, WPARAM wParam, LPARAM lType )
{
    uint uiID = uiInID & 255;
    bool bIsResolveEvent = ( uiInID & 256 ) != 0;

    // Call the CTCP socket's event handler that's associated with the uiID argument
    if ( m_pSocket[ uiID ] != NULL )
    {
        // We know it's a derived class for sure.. so static_cast it without any error checking
        CTCPClientSocketImpl* pSocket = static_cast < CTCPClientSocketImpl* > ( m_pSocket[ uiID ] );
        pSocket->FireEvent ( bIsResolveEvent, wParam, lType );
    }
}