/// <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); }
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(); }
public LoginManager(QQClient client) { QQClient = client; }
public FriendManager(QQClient client) { this.QQClient = client; }
/// <summary> /// <remark>abu 2008-03-10 </remark> /// </summary> /// <param name="client">The client.</param> public MessageManager(QQClient client) { QQClient = client; }