/// <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);
 }
Exemplo n.º 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());
 }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public TCPServerSocket()
 {
     m_buffer_pools      = new SendRecvBufferPools();
     m_user_tokens_pools = new UserTokenPools();
     m_user_tokens       = new ConcurrentDictionary <long, UserToken>();
 }