示例#1
0
CTcpConnection*	CNetServer::ConnectNew(CTcpContext* pContext)
{
    if (!pContext)
        return nullptr;

    CNetClient* pClient = m_mapClient.allocate(pContext);
    if (pClient)
    {
        pClient->initialize();
        pClient->bindContext(pContext);
    }

    return pClient;
}