WINSOCK
JasonSafe
勤能补拙!
展开
-
Windows Error 0x00002620 - 0x00002B0F
This is the fourteenth and final node in the project to consolidate all of the Windows Error nodes. You will notice that this node seems to skip a few numbers from time to time. Those are the error转载 2017-07-28 08:50:21 · 1460 阅读 · 0 评论 -
IOCP与SO_KEEPALIVE
项目使用IOCP完成端口,要对连入的客户端进行 死连接检测。由于是TCP协议,便想到用SO_KEEPALIVE及SIO_KEEPALIVE_VALS进行检测。简洁方便,把任务交给系统来做更有保障些。于是便写下了如下代码: //Set Keeplive 开启保活机制 if (SOCKET_ERROR == setsockopt(pClientContext->m_sockClient, SOL_S原创 2017-08-29 16:53:08 · 727 阅读 · 0 评论