基于IOCP的局域网监控系统.docxVIP

  • 4
  • 0
  • 约3.52千字
  • 约 3页
  • 2021-11-23 发布于山东
  • 举报
基于 IOCP 的局域网监控系统 shutdown(lpPerIoContext-sClient, SD_BOTH); closesocket(lpPerIoContext- sClient); lpPerIoContext-pNext = NULL; pThis-InsertToLookaside(lpPerIoCon text, NULL); lpHandleContext-pNext = NULL; pThis-InsertToLookaside(NULL, lpHandleContext); pThis- DecreaseClientNum(); continue; } } HANDLE hResult; PPER_HANDLE_CONTEXT lpNewperHandleContext;//判断该通知为 哪种类型的操作的结果 switch(lpPerIoContext-IoOperation) {// 接受新的 TCP 连接 case IoAccept: pThis- IncreaseClientNum(); EnterCriticalSection(pThis-m_ ListCriSection); pThis- ReleaseConnectionNode(lpPerIoContext); LeaveCriticalSection(pThi s- m_ListCriS

文档评论(0)

1亿VIP精品文档

相关文档