0

我在 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);
        }
    }
4

0 回答 0