本文整理汇总了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);
}
示例2: KeepAlivePacket
public KeepAlivePacket(QQClient client)
: base(QQCommand.Keep_Alive, true, client)
{
// 刻意增加了keep alive包的发送次数,实验性质,不知能否减少网络包
// 太多情况下的掉线可能性
SendCount = 10;
}
示例3: LoginRequestPacket
public LoginRequestPacket(QQClient client)
: base(QQCommand.LoginRequest, true, client)
{
this.Token = null;
this.GetCode = 0;
this.Png_Data = 0;
}
示例4: SearchUserPacket
public SearchUserPacket(QQClient client)
: base(QQCommand.Search_User_05,true,client)
{
Page = "0";
SearchType = FriendSearchType.SEARCH_ALL;
QQStr = Nick = Email = string.Empty;
}
示例5: SendSMSPacket
public SendSMSPacket(QQClient client)
: base(QQCommand.Send_SMS_05,true,client)
{
MessageSequence = 0;
ContentType = SMSContentType.NORMAL;
SendMode = SMSSendMode.NORMAL;
}
示例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;
}
示例7: ClusterModifyInfoPacket
public ClusterModifyInfoPacket(QQClient client)
: base(client)
{
SubCommand = ClusterCommand.MODIFY_CLUSTER_INFO;
AuthType = AuthType.NeedAuth;
Name = Notice = Description = string.Empty;
Type = ClusterType.PERMANENT;
}
示例8: AddFriendAuthorizePacket
public AddFriendAuthorizePacket(QQClient client)
: base(QQCommand.AddFriendAuthorize,true,client)
{
//SubCommand = AddFriendAuthSubCmd.Request;// 0x02;
//ReverseAdd = RevenseAdd.Allow;
DestGroup = 0;
Message = string.Empty;
}
示例9: ClusterCreatePacket
public ClusterCreatePacket(QQClient client)
: base(client)
{
this.SubCommand = ClusterCommand.CREATE_CLUSTER;
this.Type = ClusterType.PERMANENT;
this.AuthType = AuthType.NeedAuth;
this.OldCategory = 0;
}
示例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();
}
示例11: AdvancedSearchUserPacket
public AdvancedSearchUserPacket(QQClient client)
: base(QQCommand.Advanced_Search_05,true,client)
{
SearchOnline = true;
HasCam = false;
Page = ProvinceIndex = CityIndex = 0;
AgeIndex = GenderIndex = 0;
}
示例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;
}
示例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]++;
}
示例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;
}
示例15: ReceiveIMReplyPacket
public ReceiveIMReplyPacket(ByteBuffer buf, int length, QQClient client)
: base(buf, length, client)
{
}