/// <summary>
 /// 对象池信息
 /// </summary>
 private void OnCommand_Pools(string[] param)
 {
     NetChannelPools.ToString(true);
     UserTokenPools.ToString(true);
     IOCPClientSocket.ToString(true);
     IOCPServerSocket.ToString(true);
     SendRecvBufferPools.ToString(true);
     PacketPools.ToString(true);
     ObjectPools.ToString(true);
     CommonObjectPools.ToString(true);
 }
예제 #2
0
 /// <summary>
 /// 对象池信息
 /// </summary>
 private void OnCommand_Pools(string[] param)
 {
     NetChannelPools.ToString(true);
     UserTokenPools.ToString(true);
     IOCPClientSocket.ToString(true);
     IOCPServerSocket.ToString(true);
     SendRecvBufferPools.ToString(true);
     PacketPools.ToString(true);
     ObjectPools.ToString(true);
     CommonObjectPools.ToString(true);
     Console.WriteLine("缓存账号数量:" + AccountCacheManager.Instance.GetCacheCount());
 }
예제 #3
0
        /// <summary>
        /// 对象池信息
        /// </summary>
        private void OnCommand_Pools(string[] param)
        {
            NetChannelPools.ToString(true);
            UserTokenPools.ToString(true);
            IOCPClientSocket.ToString(true);
            IOCPServerSocket.ToString(true);
            SendRecvBufferPools.ToString(true);
            PacketPools.ToString(true);
            ObjectPools.ToString(true);
            CommonObjectPools.ToString(true);

            int unit_count     = UnitManager.Instance.GetUnitCount();
            int relation_count = RelationManager.Instance.GetMemberCount();

            Console.WriteLine("缓存玩家数量:" + unit_count + " 缓存关系数量:" + relation_count);
        }