• 大小: 0.22M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-22
  • 语言: C/C++
  • 标签: 端口  c  MFC  IOC  开发  

资源简介

完成端口开发包iocpmfc

资源截图

代码片段和文件信息

#include “StdAfx.h“

#include “CriticalSection.h“
#include “Utils.h“


///////////////////////////////////////////////////////////////////////////////
// CCriticalSection
///////////////////////////////////////////////////////////////////////////////

CCriticalSection::CCriticalSection()
{
   ::InitializeCriticalSection(&m_crit);
}
      
CCriticalSection::~CCriticalSection()
{
   ::DeleteCriticalSection(&m_crit);
}

#if(_WIN32_WINNT >= 0x0400)
bool CCriticalSection::TryEnter()
{
   return BOOL_to_bool(::TryEnterCriticalSection(&m_crit));
}
#endif

void CCriticalSection::Enter()
{
   ::EnterCriticalSection(&m_crit);
}

void CCriticalSection::Leave()
{
   ::LeaveCriticalSection(&m_crit);
}

///////////////////////////////////////////////////////////////////////////////
// CCriticalSection::Owner
///////////////////////////////////////////////////////////////////////////////

CCriticalSection::Owner::Owner(
   CCriticalSection &crit)
   : m_crit

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2004-03-18 09:09  IOCPMFC

     目录          0  2004-03-18 14:33  IOCPMFC\Include

     文件       1280  2004-03-11 16:56  IOCPMFC\Include\CriticalSection.cpp

     文件       1303  2004-03-15 11:03  IOCPMFC\Include\CriticalSection.h

     文件       2861  2004-03-12 09:39  IOCPMFC\Include\Event.cpp

     文件       1428  2004-03-15 11:03  IOCPMFC\Include\Event.h

     文件        905  2004-03-11 17:55  IOCPMFC\Include\Exception.cpp

     文件       1022  2004-03-15 11:03  IOCPMFC\Include\Exception.h

     文件       9029  2004-03-16 09:29  IOCPMFC\Include\IOBuffer.cpp

     文件       4692  2004-03-15 11:03  IOCPMFC\Include\IOBuffer.h

     文件       2430  2004-03-12 09:17  IOCPMFC\Include\IOCompletionPort.cpp

     文件       1512  2004-03-15 11:00  IOCPMFC\Include\IOCompletionPort.h

     文件        708  2004-03-12 11:35  IOCPMFC\Include\ManualResetEvent.cpp

     文件       1072  2004-03-15 11:00  IOCPMFC\Include\ManualResetEvent.h

     文件       2313  2004-03-12 09:45  IOCPMFC\Include\NodeList.cpp

     文件       2047  2004-03-15 11:00  IOCPMFC\Include\NodeList.h

     文件       1701  2004-03-15 11:00  IOCPMFC\Include\OpaqueUserData.h

     文件       3346  2004-03-15 17:41  IOCPMFC\Include\Socket.cpp

     文件       1872  2004-03-15 17:40  IOCPMFC\Include\Socket.h

     文件      37583  2004-03-18 14:33  IOCPMFC\Include\SocketServer.cpp

     文件      12404  2004-03-15 10:59  IOCPMFC\Include\SocketServer.h

     文件        505  2004-03-15 10:59  IOCPMFC\Include\SystemInfo.h

     文件       2261  2004-03-12 10:02  IOCPMFC\Include\Thread.cpp

     文件       1070  2004-03-15 10:58  IOCPMFC\Include\Thread.h

     文件        869  2004-03-16 09:55  IOCPMFC\Include\UsesWinsock.cpp

     文件        884  2004-03-15 11:02  IOCPMFC\Include\UsesWinsock.h

     文件        800  2004-03-18 11:04  IOCPMFC\Include\Utils.cpp

     文件       1217  2004-03-18 09:48  IOCPMFC\Include\Utils.h

     文件        680  2004-03-12 09:33  IOCPMFC\Include\Win32Exception.cpp

     文件        785  2004-03-15 11:02  IOCPMFC\Include\Win32Exception.h

............此处省略29个文件信息

评论

共有 条评论