Exemple #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);
        }
Exemple #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);
     }
 }
 public ConnectionManager(QQClient client)
 {
     QQClient       = client;
     ConnectionPool = new QQ.NET.Net.Sockets.ConnectionPool();
 }
Exemple #4
0
 public LoginManager(QQClient client)
 {
     QQClient = client;
 }
Exemple #5
0
 public FriendManager(QQClient client)
 {
     this.QQClient = client;
 }
Exemple #6
0
 /// <summary>
 ///     <remark>abu 2008-03-10 </remark>
 /// </summary>
 /// <param name="client">The client.</param>
 public MessageManager(QQClient client)
 {
     QQClient = client;
 }