RakNet 63会话限制

时间:2016-01-10 23:55:30

标签: c++ windows networking raknet

我在Windows Server 2008上使用raknet进行tcp网络连接,它可以接受大量连接,但无法接收来自所有连接的数据包:只能读取63个客户端的数据包。

这是我的接收代码:

if (tcpInterface->ReceiveHasPackets())
    {

        for (packet = tcpInterface->Receive(); packet; tcpInterface->DeallocatePacket(packet), packet = tcpInterface->Receive())

        {
            TRACE("tcpInterface->GetConnectionCount(); %d \n", tcpInterface->GetConnectionCount());
            //sNetMgr->ReceivedPacket(packet);
        }
    }

0 个答案:

没有答案