文件名称:高级通信程序
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个自我感觉很好的通信程序,它的特点:
1.数据包格式全部自己定义。
所有的定义和通信核心类全部在COMM文件夹中。
2.能处理大量客户端同时通信的情况,客户和服务端共用相同的通信对象,并且可以实现互传。
3.通信细节全部封装在几个通用的类中,隐藏了交互通信的所有处理细节,如断包处理,超时重发等功能。
4.数据通信和数据具体应用完全分离,扩展性良好,本例中只做一个上传文件的例子,你可以在不用改动通信核心的情况下,可以实现远程控制所需的任何功能,并且不需要考虑通信细节。具体方法可以参考:CommSrvApps 单元的TSrvApp_File类,只需写一个新类即可:
TSrvApp_File = class(TServerAppObject)
public
function ProcessData(ABuf: PChar ASize: integer): integer override
end
通过以上类配合通信核心类,实现了远程实时传送一个文件就像copy那么简单。
其它:
此程序是我自己开发的连锁超市方案中数据交换的应用实例,所以客户端和服务端的代码有点多,但多是与通信本身无关,所实现的功能是将本地Local文件夹与远程Remote文件夹的.rs文件互相进行传送。
-this a good feeling of self-communication program, which features : 1. All data packet format own definition. All the definition and communication in all core categories COMM folder. 2. Can handle a large number of client communications in the same time, customer-service and sharing the same communications targets, and can interoperate Chuan. 3. Details of all communications package in a few general categories, interactive communications hidden handle all the details, such as broken packet processing, heavy overtime, among other functions. 4. Data communications and specific application data separation, scalability good, in this case they should only upload documents example, you can not change the core of communication, remote control can be achieved for any function, and need not cons
1.数据包格式全部自己定义。
所有的定义和通信核心类全部在COMM文件夹中。
2.能处理大量客户端同时通信的情况,客户和服务端共用相同的通信对象,并且可以实现互传。
3.通信细节全部封装在几个通用的类中,隐藏了交互通信的所有处理细节,如断包处理,超时重发等功能。
4.数据通信和数据具体应用完全分离,扩展性良好,本例中只做一个上传文件的例子,你可以在不用改动通信核心的情况下,可以实现远程控制所需的任何功能,并且不需要考虑通信细节。具体方法可以参考:CommSrvApps 单元的TSrvApp_File类,只需写一个新类即可:
TSrvApp_File = class(TServerAppObject)
public
function ProcessData(ABuf: PChar ASize: integer): integer override
end
通过以上类配合通信核心类,实现了远程实时传送一个文件就像copy那么简单。
其它:
此程序是我自己开发的连锁超市方案中数据交换的应用实例,所以客户端和服务端的代码有点多,但多是与通信本身无关,所实现的功能是将本地Local文件夹与远程Remote文件夹的.rs文件互相进行传送。
-this a good feeling of self-communication program, which features : 1. All data packet format own definition. All the definition and communication in all core categories COMM folder. 2. Can handle a large number of client communications in the same time, customer-service and sharing the same communications targets, and can interoperate Chuan. 3. Details of all communications package in a few general categories, interactive communications hidden handle all the details, such as broken packet processing, heavy overtime, among other functions. 4. Data communications and specific application data separation, scalability good, in this case they should only upload documents example, you can not change the core of communication, remote control can be achieved for any function, and need not cons
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实时通信程序
............\client
............\......\CClient.cfg
............\......\CClient.dof
............\......\CClient.dpr
............\......\CClient.res
............\......\CClient.~dpr
............\......\CC_Const.dcu
............\......\CC_Const.pas
............\......\CC_Const.~pas
............\......\CC_main.dcu
............\......\CC_main.ddp
............\......\CC_main.dfm
............\......\CC_main.pas
............\......\CC_main.~ddp
............\......\CC_main.~dfm
............\......\CC_main.~pas
............\......\CC_Types.dcu
............\......\CC_Types.pas
............\......\CC_Types.~pas
............\......\cmmdpk.cfg
............\......\cmmdpk.dcu
............\......\cmmdpk.dof
............\......\cmmdpk.dpk
............\......\cmmdpk.res
............\......\cmmdpk.~dpk
............\......\cmmsetup.dat
............\......\Data
............\......\....\log.dat
............\......\FlEdit.dcu
............\......\FlEdit.pas
............\......\FlEdit.~pas
............\......\Local
............\......\.....\cmmdpk.cfg
............\......\.....\cmmdpk.dcu
............\......\.....\cmmdpk.dof
............\......\.....\cmmdpk.dpk
............\......\.....\cmmdpk.res
............\......\.....\cmmdpk.~dpk
............\......\.....\FlEdit.dcu
............\......\.....\FlEdit.pas
............\......\.....\FlEdit.~pas
............\......\.....\MaxMin.dcu
............\......\.....\MaxMin.pas
............\......\.....\Rxconst.dcu
............\......\.....\Rxconst.pas
............\......\.....\Trayico.dcu
............\......\.....\Trayico.PAS
............\......\MaxMin.dcu
............\......\MaxMin.pas
............\......\Rxconst.dcu
............\......\Rxconst.pas
............\......\Trayico.dcu
............\......\Trayico.PAS
............\comm
............\....\CommClass.cfg
............\....\CommClass.dcu
............\....\CommClass.dof
............\....\CommClass.dpk
............\....\CommClass.res
............\....\CommClass.~dpk
............\....\CommObj.dcu
............\....\CommObj.pas
............\....\CommObj.~pas
............\....\CommSrvApps.dcu
............\....\CommSrvApps.pas
............\....\CommSrvApps.~pas
............\....\CommUtils.dcu
............\....\CommUtils.pas
............\....\CommUtils.~pas
............\....\SelfFunc.pas
............\server
............\......\CServer.cfg
............\......\CServer.dof
............\......\CServer.dpr
............\......\CServer.res
............\......\CServer.~dpr
............\......\CSrv_const.dcu
............\......\CSrv_const.pas
............\......\CSrv_const.~pas
............\......\CSrv_main.dcu
............\......\CSrv_main.ddp
............\......\CSrv_main.dfm
............\......\CSrv_main.pas
............\......\CSrv_main.~ddp
............\......\CSrv_main.~dfm
............\......\CSrv_main.~pas
............\......\CSrv_Setup.dcu
............\......\CSrv_Setup.ddp
............\......\CSrv_Setup.dfm
............\......\CSrv_Setup.pas
............\......\CSrv_Setup.~ddp
............\......\CSrv_Setup.~dfm
............\......\CSrv_Setup.~pas
............\......\CSSetup.dat
............\......\Data
............\......\local
............\......\Remote
............\使用说明.txt
............\控件补丁
............\client
............\......\CClient.cfg
............\......\CClient.dof
............\......\CClient.dpr
............\......\CClient.res
............\......\CClient.~dpr
............\......\CC_Const.dcu
............\......\CC_Const.pas
............\......\CC_Const.~pas
............\......\CC_main.dcu
............\......\CC_main.ddp
............\......\CC_main.dfm
............\......\CC_main.pas
............\......\CC_main.~ddp
............\......\CC_main.~dfm
............\......\CC_main.~pas
............\......\CC_Types.dcu
............\......\CC_Types.pas
............\......\CC_Types.~pas
............\......\cmmdpk.cfg
............\......\cmmdpk.dcu
............\......\cmmdpk.dof
............\......\cmmdpk.dpk
............\......\cmmdpk.res
............\......\cmmdpk.~dpk
............\......\cmmsetup.dat
............\......\Data
............\......\....\log.dat
............\......\FlEdit.dcu
............\......\FlEdit.pas
............\......\FlEdit.~pas
............\......\Local
............\......\.....\cmmdpk.cfg
............\......\.....\cmmdpk.dcu
............\......\.....\cmmdpk.dof
............\......\.....\cmmdpk.dpk
............\......\.....\cmmdpk.res
............\......\.....\cmmdpk.~dpk
............\......\.....\FlEdit.dcu
............\......\.....\FlEdit.pas
............\......\.....\FlEdit.~pas
............\......\.....\MaxMin.dcu
............\......\.....\MaxMin.pas
............\......\.....\Rxconst.dcu
............\......\.....\Rxconst.pas
............\......\.....\Trayico.dcu
............\......\.....\Trayico.PAS
............\......\MaxMin.dcu
............\......\MaxMin.pas
............\......\Rxconst.dcu
............\......\Rxconst.pas
............\......\Trayico.dcu
............\......\Trayico.PAS
............\comm
............\....\CommClass.cfg
............\....\CommClass.dcu
............\....\CommClass.dof
............\....\CommClass.dpk
............\....\CommClass.res
............\....\CommClass.~dpk
............\....\CommObj.dcu
............\....\CommObj.pas
............\....\CommObj.~pas
............\....\CommSrvApps.dcu
............\....\CommSrvApps.pas
............\....\CommSrvApps.~pas
............\....\CommUtils.dcu
............\....\CommUtils.pas
............\....\CommUtils.~pas
............\....\SelfFunc.pas
............\server
............\......\CServer.cfg
............\......\CServer.dof
............\......\CServer.dpr
............\......\CServer.res
............\......\CServer.~dpr
............\......\CSrv_const.dcu
............\......\CSrv_const.pas
............\......\CSrv_const.~pas
............\......\CSrv_main.dcu
............\......\CSrv_main.ddp
............\......\CSrv_main.dfm
............\......\CSrv_main.pas
............\......\CSrv_main.~ddp
............\......\CSrv_main.~dfm
............\......\CSrv_main.~pas
............\......\CSrv_Setup.dcu
............\......\CSrv_Setup.ddp
............\......\CSrv_Setup.dfm
............\......\CSrv_Setup.pas
............\......\CSrv_Setup.~ddp
............\......\CSrv_Setup.~dfm
............\......\CSrv_Setup.~pas
............\......\CSSetup.dat
............\......\Data
............\......\local
............\......\Remote
............\使用说明.txt
............\控件补丁