Example #1
0
        /// <summary>
        ///     <remark>abu 2008-03-10 </remark>
        /// </summary>
        /// <param name="client">The client.</param>
        public PacketManager(QQClient client)
        {
            router = new ProcessorRouter(client);
            router.InstallProcessor(new BasicFamilyProcessor(client));

            this.QQClient           = client;
            receiveQueue            = new Queue <InPacket>();
            this.packetIncomTrigger = new PacketIncomeTrigger(client);
            this.resendTrigger      = new ResendTrigger(client);
            keepAliveTrigger        = new KeepAliveTrigger(client);
        }
Example #2
0
 internal void OnLoginRedirect(QQEventArgs <LoginReplyPacket, LoginPacket> e)
 {
     // 如果是登陆重定向,继续登陆
     QQClient.LoginRedirect = true;
     QQClient.ConnectionManager.ConnectionPool.Release(QQPort.Main.Name);
     QQClient.Login(Utils.Util.GetIpStringFromBytes(e.InPacket.RedirectIP), e.InPacket.RedirectPort);
     if (LoginRedirect != null)
     {
         LoginRedirect(this, e);
     }
 }
Example #3
0
 public ConnectionManager(QQClient client)
 {
     QQClient       = client;
     ConnectionPool = new QQ.NET.Net.Sockets.ConnectionPool();
 }
Example #4
0
 public LoginManager(QQClient client)
 {
     QQClient = client;
 }
Example #5
0
 public FriendManager(QQClient client)
 {
     this.QQClient = client;
 }
Example #6
0
 /// <summary>
 ///     <remark>abu 2008-03-10 </remark>
 /// </summary>
 /// <param name="client">The client.</param>
 public MessageManager(QQClient client)
 {
     QQClient = client;
 }