qqprotocol_cPP

所属分类:ICQ/即时通讯
开发工具:Visual C++
文件大小:30886KB
下载次数:24
上传日期:2011-05-03 12:38:04
上 传 者愤怒的码农
说明:  QQProtocol中代码的基本结构: CQQUser存储一个QQ用户的所有信息,包括客户指定信息(用户名,密码等)和服务器返回信息(指在和服务器通讯过程中服务器“设置的”信息,如各种各样的密钥是在和服务器通讯过程中某些特定步骤由服务器生成并返回的,而还有些信息如服务器IP和端口则是最初由客户指定,但有可能因为服务器重定向而改变,等等等等) CInPacket和COutPacket是发送/接收包基类,CBasicInPacket/CBasicOutPacket是QQ基本协议族发送/接收包基类,CBasicFamilyParser是QQ基本协议族消息管理器,至于要和QQ服务器正常通讯,还要用“翻译”成QQ服务器的“语言”——由CCrypter加密/解密包 最后,所有类使用的常量则实现为类QQ的公共静态成员变量 而所有这些类都是为CQQClient类服务的,它是QQProtocol的操作接口(数据接口则是CQQUser)。目前实现的版本主要接口是Login,负责向QQ服务器登录。由它负责创建一个工作线程,向服务器发包,等待回复,回复的结果调用CQQClient的虚函数,所以对于库的使用者,需要生成一个派生类实现这些虚函数以处理回复。
(QQProtocol the basic structure of the code: CQQUser store a QQ user all the information, including customer specific information (user name, password, etc.) and the server to return information (refer to the server and the server communication process "set up" information, such as a variety of keys are in and server communication certain steps of the process generated by the server and returns, and also some information such as the server IP and port are initially specified by the customer, but may change because the server redirect, etc., etc.) CInPacket and COutPacket is to send/receive packet base class, CBasicInPacket/CBasicOutPacket family is the basic agreement QQ send/receive packet base class, CBasicFamilyParser family is the basic agreement QQ news manager, and the QQ server As for normal communication, but also with the "translation" QQ server into the "language"- by the CCrypter encryption/decryption package Finally, the constant use of all classes are implemented as p)

文件列表:
qq\demo\Debug\demo.log (2573, 2011-04-28)
qq\qqprotocol\Debug\QQProtocol.log (29579, 2011-04-28)
qq\qqprotocol\BasicFamilyParser.h (1854, 2011-04-28)
qq\qqprotocol\BasicInPacket.h (1778, 2011-04-28)
qq\qqprotocol\BasicOutPacket.h (2196, 2011-04-28)
qq\qqprotocol\Crypter.h (3865, 2011-04-28)
qq\demo\demo.h (320, 2011-04-28)
qq\demo\DemoQQClient.h (665, 2011-04-28)
qq\qqprotocol\InPacket.h (3448, 2011-04-28)
qq\qqprotocol\LoginPacket.h (2319, 2011-04-28)
qq\qqprotocol\LoginReplyPacket.h (2705, 2011-04-28)
qq\qqprotocol\md5.h (1798, 2011-04-28)
qq\qqprotocol\OutPacket.h (3557, 2011-04-28)
qq\qqprotocol\QQ.H (33238, 2011-04-28)
qq\qqprotocol\QQClient.h (2180, 2011-04-28)
qq\qqprotocol\QQUser.h (3265, 2011-04-28)
qq\qqprotocol\RequestLoginTokenPacket.h (1908, 2011-04-28)
qq\qqprotocol\RequestLoginTokenReplyPacket.h (2061, 2011-04-28)
qq\demo\Resource.h (445, 2011-04-28)
qq\qqprotocol\StdAfx.h (854, 2011-04-28)
qq\demo\StdAfx.h (1129, 2011-04-28)
qq\qqprotocol\BasicFamilyParser.cpp (2763, 2011-04-28)
qq\qqprotocol\BasicInPacket.cpp (2410, 2011-04-28)
qq\qqprotocol\BasicOutPacket.cpp (2479, 2011-04-28)
qq\qqprotocol\Crypter.cpp (12168, 2011-04-28)
qq\demo\demo.cpp (1592, 2011-04-28)
qq\demo\DemoQQClient.cpp (670, 2011-04-28)
qq\qqprotocol\InPacket.cpp (2071, 2011-04-28)
qq\qqprotocol\LoginPacket.cpp (3768, 2011-04-28)
qq\qqprotocol\LoginReplyPacket.cpp (4791, 2011-04-28)
qq\qqprotocol\md5.cpp (11718, 2011-04-28)
qq\qqprotocol\OutPacket.cpp (3119, 2011-04-28)
qq\qqprotocol\QQ.CPP (35142, 2011-04-28)
qq\qqprotocol\QQClient.cpp (8232, 2011-04-28)
qq\qqprotocol\QQUser.cpp (4438, 2011-04-28)
qq\qqprotocol\RequestLoginTokenPacket.cpp (1932, 2011-04-28)
qq\qqprotocol\RequestLoginTokenReplyPacket.cpp (2296, 2011-04-28)
qq\qqprotocol\StdAfx.cpp (208, 2011-04-28)
... ...

======================================================================== CONSOLE APPLICATION : demo ======================================================================== AppWizard has created this demo application for you. This file contains a summary of what you will find in each of the files that make up your demo application. demo.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. demo.cpp This is the main application source file. demo.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named demo.pch and a precompiled types file named StdAfx.obj. Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者