/// <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); }
/// <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()); }
/// <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); }