登录
首页 » 套接字网络编程 » 心跳检测

心跳检测

于 2023-01-13 发布 文件大小:5.18 kB
0 167
下载积分: 2 下载次数: 1

代码说明:

判断对方(设备,进程或其它网元)是否正常动行,一般采用定时发送简单的通讯包,如果在指定时间段内未收到对方响应,则判断对方已经当掉。用于检测TCP的异常断开。基本原因是服务器端不能有效的判断客户端是否在线也就是说,服务器无法区分客户端是长时间在空闲,还是已经掉线的情况。所谓的心跳包就是客户端定时发送简单的信息给服务器端告诉它我还在而已。代码就是每隔几分钟发送一个固定信息给服务端,服务端收到后回复一个固定信息。如果服务端几分钟内没有收到客户端信息则视客户端断开。比如有些通信软件长时间不使用,要想知道它的状态是在线还是离线就需要心跳包,定时发包收包。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • personal job management system "allows you to find work to facilitate the p...
    个人求职管理系统》可以让你在找工作的过程中方便地记录你所选中的公司信息、职位信息、发送的简历和公司的回复,支持多用户,是一个多用户系统。具体请看readme文件。 -personal job management system "allows you to find work to facilitate the process of recording your chosen company information, job information, send a resume and the company"s response, support multiple users, is a multi-user system. For details, please read the readme file.
    2022-05-20 00:59:33下载
    积分:1
  • 十天搞定asp超级教
    十天搞定asp编程超级教程-10 days to get asp programming Super Guide
    2022-11-29 14:50:03下载
    积分:1
  • use PHP Programming Chat Room
    使用PHP编程的聊天室-use PHP Programming Chat Room
    2022-07-12 02:46:29下载
    积分:1
  • 组播序 可以受相应上的组播信息。
    组播接受程序 可以接受相应网络上的组播信息。-Multicast receiving program can receive relevant information on the network multicast.
    2022-02-20 01:25:57下载
    积分:1
  • linux c 实现ping功能
    使用linux c语言,c语言ping命令,根据ping的各种参数,实现ping的结果,包括最大延时,
    2022-04-09 10:15:39下载
    积分:1
  • 一个Apple风格的留言板,界面很清新,用php写的。
    一个Apple风格的留言板,界面很清新,用php编写的。-an Apple-style message board, a very clean interface, with php prepared.
    2022-05-06 17:19:01下载
    积分:1
  • 对等通信
    peer to peer communication
    2023-08-25 19:20:03下载
    积分:1
  • 计算机技术基础篇第7章 IPv6报文封装及地址生成
    资源描述 仅包含IPv6报头的报文封装程序, 操作系统:Windows XP SP2 开发语言:C++ 编译环境:MS Visual C++6.0
    2022-02-05 14:39:33下载
    积分:1
  • 利用c++语言写的代码获得本机ip地址,算是的基础课...
    利用c++语言编写的代码获得本机ip地址,算是网络编程的基础课-copy from a book,i really have not learnt it clearly
    2022-01-26 06:54:27下载
    积分:1
  • Php version of Fetion reference (http://sourceforge.net/projects/openfetion/) wi...
    参考Php版飞信(http://sourceforge.net/projects/openfetion/)用Delphi实现了中国移动飞信2008协议的登录和发短信部分。其它功能并没有实现,不过在此基础上实现起来应该没有难度。 该程序为纯绿色软件,不写注册表,无需Dll文件和配置文件。 程序中用到的SHA1算法源码和TIEHttp控件均来源于网络,感谢二位作者。 使用之前请先注册一个飞信号。 由于很多网友使用的版本是Delphi7+Indy9,因此做了这个Delphi7版的飞信-Php version of Fetion reference (http://sourceforge.net/projects/openfetion/) with Delphi implementation of the 2008 China Mobile Fetion sign the protocol and message part of hair. Other features do not realize, but on this basis should not be difficult to achieve. The program for the pure green software, does not write the registry, without Dll files and configuration files. Procedures used in the SHA1 algorithm and source code control TIEHttp are derived from the network, the authors thank two. Please register before using the signal of a fly. Because a lot of users are using the version of Delphi7+ Indy9, so make this version of Fetion Delphi7
    2023-03-26 07:45:03下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载