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