-
DDDownload
Dual Direction Download. split file into blocks and download from first and last block.usage:cloud servers download from replications
- 2013-11-02 16:05:46下载
- 积分:1
-
libpcap
基于libpcap的网络封包截获程序。-libpcap-based network packet interception procedures.
- 2023-06-13 09:55:19下载
- 积分:1
-
Asd-pocs
一种稀疏角度下的重建算法,该算法是在matlab平台上实现的CT重建算法(A sparse angle reconstruction algorithm)
- 2018-01-15 15:37:41下载
- 积分:1
-
MFac
MFAC控制跟踪永磁直线电机,实现速度与位置的跟踪(MFAC control tracking permanent magnet linear motor)
- 2021-02-08 16:39:55下载
- 积分:1
-
Hide-Columns
VB Code for hide columns automatically in excel
- 2013-04-23 21:08:43下载
- 积分:1
-
Oscylator_Duffinga
Duffing Equation - Dugging oscillator simlation
- 2013-09-09 06:34:32下载
- 积分:1
-
Matlabdigitalsignal
MATLAB+7_0+在数字信号处理中的应用,主要讲解信号处理工具箱以及各种信号处理仿真算法(MATLAB+7_0+ in digital signal processing applications, mainly on the Signal Processing Toolbox, and a variety of signal processing simulation algorithm)
- 2013-03-20 15:44:47下载
- 积分:1
-
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP...
计算校验和
校验和算法描述:为保证网络上传输的数据的可靠性,在许多协议中都设置了校验和项,例如:IPv4、ICMPv4、IGMPV4、ICMPv6、UDP和TCP 等等。计算这些校验和的算法称为网际校验和算法,简单来说就是:把被校验的数据16位进行累加,然后取反码,若数据字节长度为奇数,则数据尾部补一个字节的0以凑成偶数。
由于从输入文件读入的数据不能直接满足计算校验和的条件,所以首先对从文件读入缓冲区的数据进行预处理,即读入缓冲区时忽略空格。由于累加是按16位进行的,所以每次从缓冲区中读出4个字符,并将字符转换成对应的16进制数字,如此依次累加,直至数据全部读完。
还有一种情况,即如果数据长度为奇数个字节,则需要判断,并补0累加。程序中利用的是缓冲区长度计数器i和当前读取到计数器j判断数据长度是否为奇数。即如果数据长度为偶数,则读完数据时当前读取到计数器j的值应与缓冲区长度i相等,而如果数据长度为奇数,则读完数据时,当前读取到计数器j>缓冲区长度i,此时需将缓冲区中剩余的两个字符读出,并补0,转换成相应16进制数以后参与累加。
当累加结束后,将累加和的16位以上数据位移下再进行一次累加,并对最后累加和取反即得所求校验和。
-calculated checksum checksum algorithm Description : To ensure the network transmission of data reliability, in many of the agreements are set up and calibration, for example : IPv4, ICMPv4, IGMPV4, ICMPv6. UDP and TCP so on. Calculating checksum algorithm called the Internet checksum algorithm, the simple answer is : as has been the calibration data for 16 cumulative, and then take the anti-code, if the data byte length of the odd, data will make up the tai
- 2022-01-26 06:39:03下载
- 积分:1
-
实验报告
说明: matalab的函数文件设计,附带图片演示结果以及完整过程。(MATALAB's function file design, with the picture demonstration results and the whole process.)
- 2020-06-27 18:25:15下载
- 积分:1
-
P2P c++ sdk
P2P dll c++ ,
static emReturnType SetAppType(emAppType AppType);//设置程序类型,服务器emAppType_Server或者客户端emAppType_Client
static emReturnType SetClientCallback(IMsgCallback *pMsgCallback);//设置回调类,回调类继承IMsgCallback接口
static emReturnType Startup();//开启网络
static emReturnType Cleanup();//关闭网络
//Server 以下函数是服务器调用
static emReturnType BeginService(unsigned short nPort);//如果是服务器,调用该函数开启服务,nPort:端口号
static emReturnType EndService();//服务器退出的时候,调用该函数关闭服务
//Client 以下函数是客户端调用
static emReturnType Logon(LOGONINFO* pLogonInfo);//函数登录服务器。pLogonInfo:登录信息,详细见P2PHeaderDef.h->LOGONINFO
static emReturnType Logout();//登出服务器
static emReturnType ConnectAnchor(CLIENTINFO* pClientInfo);//连接主播,该函数是用户调用
static emReturnType SendP2PMSG(CLIENTINFO* pClientInfo, char* pszMsg, int nMsgLen);//发送P2P消息,pClientInfo,要发送的客户信息,如果是用户,则pClientI
- 2022-02-03 19:54:38下载
- 积分:1