当前位置: 首页>>代码示例>>C#>>正文


C# QQClient类代码示例

本文整理汇总了C#中QQClient的典型用法代码示例。如果您正苦于以下问题:C# QQClient类的具体用法?C# QQClient怎么用?C# QQClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


QQClient类属于命名空间,在下文中一共展示了QQClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ResendTrigger

 //string portName;
 public ResendTrigger(QQClient client)
 {
     this.client = client;
     timeOutQueue = new List<OutPacket>();
     //toPort = new Dictionary<OutPacket, string>();
     ThreadExcutor.RegisterIntervalObject(this, this, QQGlobal.QQ_TIMEOUT_SEND, true);
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ResendTrigger.cs

示例2: KeepAlivePacket

 public KeepAlivePacket(QQClient client)
     : base(QQCommand.Keep_Alive, true, client)
 {
     // 刻意增加了keep alive包的发送次数,实验性质,不知能否减少网络包
     // 太多情况下的掉线可能性
     SendCount = 10;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:KeepAlivePacket.cs

示例3: LoginRequestPacket

 public LoginRequestPacket(QQClient client)
     : base(QQCommand.LoginRequest, true, client)
 {
     this.Token = null;
     this.GetCode = 0;
     this.Png_Data = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:LoginRequestPacket.cs

示例4: SearchUserPacket

 public SearchUserPacket(QQClient client)
     : base(QQCommand.Search_User_05,true,client)
 {
     Page = "0";
     SearchType = FriendSearchType.SEARCH_ALL;
     QQStr = Nick = Email = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:SearchUserPacket.cs

示例5: SendSMSPacket

 public SendSMSPacket(QQClient client)
     : base(QQCommand.Send_SMS_05,true,client)
 {
     MessageSequence = 0;
     ContentType = SMSContentType.NORMAL;
     SendMode = SMSSendMode.NORMAL;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:SendSMSPacket.cs

示例6: OutPacket

 /// <summary>创建一个基本输出包
 /// </summary>
 /// <param name="header">The header.</param>
 /// <param name="command">包命令.</param>
 /// <param name="ack">包是否需要回复.</param>
 /// <param name="user">QQ用户对象.</param>
 public OutPacket(byte header, QQCommand command, bool ack, QQClient client)
     : base(header, QQGlobal.QQ_CLIENT_VERSION, command, GetNextSeq(), client)
 {
     this.ack = ack;
     this.resendCountDown = QQGlobal.QQ_SEND_TIME_NOACK_PACKET;
     this.SendCount = 1;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:13,代码来源:OutPacket.cs

示例7: ClusterModifyInfoPacket

 public ClusterModifyInfoPacket(QQClient client)
     : base(client)
 {
     SubCommand = ClusterCommand.MODIFY_CLUSTER_INFO;
     AuthType = AuthType.NeedAuth;
     Name = Notice = Description = string.Empty;
     Type = ClusterType.PERMANENT;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ClusterModifyInfoPacket.cs

示例8: AddFriendAuthorizePacket

 public AddFriendAuthorizePacket(QQClient client)
     : base(QQCommand.AddFriendAuthorize,true,client)
 {
     //SubCommand = AddFriendAuthSubCmd.Request;// 0x02;
     //ReverseAdd = RevenseAdd.Allow;
     DestGroup = 0;
     Message = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:AddFriendAuthorizePacket.cs

示例9: ClusterCreatePacket

 public ClusterCreatePacket(QQClient client)
     : base(client)
 {
     this.SubCommand = ClusterCommand.CREATE_CLUSTER;
     this.Type = ClusterType.PERMANENT;
     this.AuthType = AuthType.NeedAuth;
     this.OldCategory = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ClusterCreatePacket.cs

示例10: ConnectionPolicy

 public ConnectionPolicy(QQClient client, string id, ProtocolFamily supportedFamily, ProtocolFamily relocateFamily)
 {
     this.ID = id;
     this.client = client;
     this.SupportedFamily = supportedFamily;
     this.RelocateFamily = relocateFamily;
     helper = new PacketHelper();
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ConnectionPolicy.cs

示例11: AdvancedSearchUserPacket

 public AdvancedSearchUserPacket(QQClient client)
     : base(QQCommand.Advanced_Search_05,true,client)
 {
     SearchOnline = true;
     HasCam = false;
     Page = ProvinceIndex = CityIndex = 0;
     AgeIndex = GenderIndex = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:AdvancedSearchUserPacket.cs

示例12: ClusterSendIMExPacket

 /// <summary>
 /// Initializes a new instance of the <see cref="ClusterSendIMExPacket"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 public ClusterSendIMExPacket(QQClient client)
     : base(client)
 {
     SubCommand = ClusterCommand.SEND_IM_EX09;
     TotalFragments = 1;
     FragmentSequence = 0;
     MessageId = (ushort)Utils.Util.Random.Next();
     FontStyle = new FontStyle();
     Message = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:14,代码来源:ClusterSendIMExPacket.cs

示例13: LoginGetListPacket

 /// <summary>
 /// 
 /// </summary>
 /// <param name="client"></param>
 public LoginGetListPacket(QQClient client)
     : base(QQCommand.LoginGetList, true, client)
 {
     //this.Pos = 0;
     //if (!RequestCount.ContainsKey(client.QQUser.QQ))
     //{
     //    RequestCount.Add(client.QQUser.QQ, 0);
     //}
     //else
     //    RequestCount[this.Client.QQUser.QQ]++;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:15,代码来源:LoginGetListPacket.cs

示例14: Packet

 /// <summary>构造一个指定参数的包
 /// </summary>
 /// <param name="header">包头</param>
 /// <param name="source">包源</param>
 /// <param name="command">包命令 </param>
 /// <param name="sequence">包序号 </param>
 /// <param name="user">QQ用户对象</param>
 public Packet(byte header, char source, QQCommand command, char sequence, QQClient client)
 {
     //this.user = user;
     this.Client = client;
     this.Source = source;
     this.Command = command;
     this.Sequence = sequence;
     this.IsDuplicated = false;
     this.Header = header;
     this.DateTime = DateTime.Now;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:18,代码来源:Packet.cs

示例15: ReceiveIMReplyPacket

 public ReceiveIMReplyPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:ReceiveIMReplyPacket.cs


注:本文中的QQClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。