Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于心跳的问题 #2

Closed
ssa521 opened this issue Apr 18, 2014 · 1 comment
Closed

关于心跳的问题 #2

ssa521 opened this issue Apr 18, 2014 · 1 comment

Comments

@ssa521
Copy link

ssa521 commented Apr 18, 2014

网络通讯,有时为了可靠,就像上次的openSSL出现漏洞的心跳包一样
我们往往会在程序中加入心跳 我不知到您是否考虑了盼回复

@ldcsaa
Copy link
Owner

ldcsaa commented May 1, 2014

/* 设置心跳包间隔(毫秒,0 则不发送心跳包) */
virtual void SetKeepAliveTime       (DWORD dwKeepAliveTime)         = 0;
/* 设置心跳确认包检测间隔(毫秒,0 不发送心跳包,如果超过若干次 [默认:WinXP 5 次, Win7 10 次] 检测不到心跳确认包则认为已断线) */
virtual void SetKeepAliveInterval   (DWORD dwKeepAliveInterval)     = 0;

@ldcsaa ldcsaa closed this as completed May 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants