• 大小: 0.28M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-22
  • 标签: Server  https  http  

资源简介

c http server 例子;

资源截图

代码片段和文件信息

#include “StdAfx.h“
#include “DllPip.h“

CDllPip::CDllPip(void)
{
hEvent = NULL;
hPip = NULL;
}

CDllPip::~CDllPip(void)
{
if (hEvent != NULL) {

::CloseHandle(hEvent);
hEvent = NULL;
}

if (hPip != NULL) {

::CloseHandle(hPip);
hPip = NULL;
}
}

bool CDllPip::CreateNPip(const wchar_t* wchPipName)
{
bool bRet = false;

try {

if (NULL == wchPipName) {

return bRet;
}

hPip = ::CreateNamedPipe(wchPipName PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED 0 PIPE_UNLIMITED_INSTANCES 1024 1024 0 NULL);

if (hPip == INVALID_HANDLE_VALUE) {

::CloseHandle(hPip);
hPip = NULL;
return bRet;
}

hEvent = ::CreateEvent(NULL TRUE FALSE NULL);

if (!hEvent) {

return bRet;
}

OVERLAPPED ovlap;
::ZeroMemory(&ovlap sizeof(OVERLAPPED));
ovlap.hEvent = hEvent;

if (!::ConnectNamedPipe(hPip &ovlap)) {

if (ERROR_IO_PENDING != GetLastError()) {

::CloseHandle(hPip);
::CloseHandl

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

     文件       1852  2017-09-28 12:46  SuperCookie\DllPip.cpp

     文件        333  2017-03-15 14:25  SuperCookie\DllPip.h

     文件       6424  2018-02-09 15:06  SuperCookie\HttpService.cpp

     文件        558  2017-03-15 15:33  SuperCookie\HttpService.h

     文件       4514  2017-09-27 13:37  SuperCookie\Inject.cpp

     文件        629  2017-09-27 13:34  SuperCookie\Inject.h

     文件       9662  2017-03-20 12:02  SuperCookie\res\SuperCookie.ico

     文件        678  2017-03-14 19:06  SuperCookie\res\SuperCookie.rc2

     文件       1792  2017-08-30 10:26  SuperCookie\resource.h

     文件        303  2017-03-15 14:20  SuperCookie\stdafx.cpp

     文件       2605  2017-09-27 13:58  SuperCookie\stdafx.h

     文件       2487  2017-03-14 19:15  SuperCookie\SuperCookie.cpp

     文件        473  2017-03-14 19:06  SuperCookie\SuperCookie.h

     文件      10014  2017-08-30 10:24  SuperCookie\SuperCookie.rc

     文件      18418  2017-09-28 12:56  SuperCookie\SuperCookie.vcxproj

     文件      18455  2017-09-27 15:25  SuperCookie\SuperCookie.vcxproj.filters

     文件       7500  2017-09-28 12:46  SuperCookie\SuperCookieDlg.cpp

     文件        942  2017-08-30 10:30  SuperCookie\SuperCookieDlg.h

     文件        240  2017-03-14 19:06  SuperCookie\targetver.h

     文件       1699  2017-03-15 11:12  SuperCookie\WebDefine.h

     文件       5607  2016-02-22 05:30  SuperCookie\websocketpp\base64\base64.hpp

     文件       1724  2016-02-22 05:30  SuperCookie\websocketpp\client.hpp

     文件      12608  2016-02-22 05:30  SuperCookie\websocketpp\close.hpp

     文件         43  2016-02-22 05:30  SuperCookie\websocketpp\CMakeLists.txt

     文件       5498  2016-02-22 05:30  SuperCookie\websocketpp\common\asio.hpp

     文件       1861  2016-02-22 05:30  SuperCookie\websocketpp\common\asio_ssl.hpp

     文件       2713  2016-02-22 05:30  SuperCookie\websocketpp\common\chrono.hpp

     文件       2420  2016-02-22 05:30  SuperCookie\websocketpp\common\connection_hdl.hpp

     文件       6931  2016-02-22 05:30  SuperCookie\websocketpp\common\cpp11.hpp

     文件       3783  2016-02-22 05:30  SuperCookie\websocketpp\common\functional.hpp

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

评论

共有 条评论