首页 | 本学科首页   官方微博 | 高级检索  
     

一种带有断开恢复功能的Socket通信方法*
引用本文:薛海强,苏森.一种带有断开恢复功能的Socket通信方法*[J].计算机应用研究,2005,22(10):236-239.
作者姓名:薛海强  苏森
作者单位:北京邮电大学,交换技术与通信网国家重点实验室,北京,100876
基金项目:国家“863”计划资助项目(2002AA121012);国家自然科学基金资助项目(90204007)
摘    要:Socket是UNIX平台上网络编程的基础,Socket API提供了进程之间的通信功能,但如果通信的一方发生故障重新启动,通信连接就会断开,应用层必须显式地重新建立连接才可以继续通信。对传统Socket通信机制进行了综合分析,在保证效率的前提下,提出了一种新型的Socket通信方法。采用这种方法,可以为分布在网络上不同主机上的进程间通信提供具有故障恢复能力的可靠通信。

关 键 词:Socket  网络通信  自动重连
文章编号:1001-3695(2005)10-0236-04
收稿时间:2004-10-23
修稿时间:2004-11-25

A Socket Communication Method with Disconnection Restoration
XUE Hai-qiang,SU Sen.A Socket Communication Method with Disconnection Restoration[J].Application Research of Computers,2005,22(10):236-239.
Authors:XUE Hai-qiang  SU Sen
Affiliation:(National Key Laboratory of Switch Technology & Telecommunication Networks, Beijing University of Posts & Telecommunications, Beijing 100876, China) .
Abstract:Socket is the base of UNIX platform network programming,it provides the interprocess communication function, but, if one of the communication parts restores from malfunction, the socket connection will be disconnected and the upper application layer must reconnect explicitly to set up the socket connection again. In this paper, the disconnection exceptions of socket communication are analysed, furthermore a novel mechanism of socket communication is proposed. This method provides the disconnection tolerance for interprocess communication.
Keywords:Socket  Network Communication  Auto-reconnect
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机应用研究》浏览原始摘要信息
点击此处可从《计算机应用研究》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号