摘要
为了设计与实现基于可扩展消息与存在协议(Extensible Message and Presence Protocol,XMPP)的即时通信系统的文件传输模块,需重点解决文件传送中的私网穿越与断点续传的问题。基于Openfire开源服务器,采用Socks5代理技术解决了私网穿越问题;采用文件MD5值验证文件的唯一性和利用缓存文件记录接收文件的偏移量相结合的方法解决了断点续传的问题。实测表明,该文件传输模块具有文件传输速度快和安全的特点。
In order to design and implement the XMPP protocol-based file transfer module of instant communication system,it is necessary to solve such problems as NAT traversal and breakpoint continual transfer.Based on Openfire open source server,the Socks5 agent technology is used to solve the first problem;the method of adopting the uniqueness of file verification with MD5 value and record-ing the offset of received file with cache files is used to solve the second problem.The practical results show that the proposed file trans-fer module features fast and secure transmission.
出处
《无线电工程》
2014年第3期1-4,共4页
Radio Engineering
基金
国家电网公司纵向科技资助项目(XX17201200034)
关键词
XMPP
文件传送
断点续传
MD5验证
XML流
XMPP
file transfer
breakpoint continual transfer
MD5 verification
XML stream