摘要
阐述了Windows Socket网络通信中的心跳机制及基本原理,在此基础上探讨了利用Delphi中ServerSocket、ClientSocket组件进行网络通信时,如何通过发送心跳包来检测客户端的非正常断开以及断开时服务端所作的相应处理。
This paper describes the principle of Heartbeat Packet based on Windows Socket communication. It also discusses Server's respective actions to detect the non-graceful disconnection at the Client by sending off Heartbeat Packet with Server Socket and Client Socket in Delphi for net communication.
出处
《沙洲职业工学院学报》
2009年第3期17-21,共5页
Journal of Shazhou Professional Institute of Technology