newtype
::: newtype의 지식창고 :::
newtype
전체 방문자
오늘
어제
  • 분류 전체보기 (392)
    • Dev (214)
      • C, C++ (43)
      • Go (5)
      • Web (49)
      • DBMS (21)
      • DevOps (8)
      • Java (2)
      • Windows, Win32 (4)
      • Visual Basic (5)
      • C# (2)
      • Mobile (25)
      • SQL CE (7)
      • Google Map (6)
      • Python (2)
      • cygwin (2)
      • 기타 (32)
      • Ruby (1)
    • 명언 (10)
    • 모임 (18)
      • 붕주회 (3)
      • 신흥컴정 (14)
      • 웹20기 (1)
    • 사진 (8)
    • 불펌 (29)
    • 막글 (98)
    • 게임 (6)
    • 여행 (8)

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • 관리

공지사항

  • whoami
05-13 00:00
hELLO · Designed By 정상우.
newtype

::: newtype의 지식창고 :::

Dev/C, C++

Simple Http Server

2017. 6. 8. 08:46

SimpleHttpServer

자세한 소스는 github을 참고하세요.
https://github.com/lmk/SimpleHttpServer

  • very simple http server
  • default port: 8080
    • modify source here
  • support: linux g++ 4.9.2

How to use

block server

HttpServer httpServer;

httpServer.Init(5, NULL);
httpServer.Run();

non-block

NBHttpServer* httpServer = NBHttpServer::getInstance();
httpServer->Init(5);
httpServer->Start();
sleep(60);
httpServer->Stop();
반응형
저작자표시

'Dev > C, C++' 카테고리의 다른 글

vscode 에서 원격 디버깅  (0) 2020.11.24
FindMSSQL  (0) 2017.09.12
OpenSSL 을 사용한 RSA  (0) 2017.05.30
Visual Leak Detector 를 사용하여 Leak을 감지하는 방법.  (0) 2016.02.15
debian 계열 linux에서 core 파일 생성 방법  (0) 2015.07.30
    'Dev/C, C++' 카테고리의 다른 글
    • vscode 에서 원격 디버깅
    • FindMSSQL
    • OpenSSL 을 사용한 RSA
    • Visual Leak Detector 를 사용하여 Leak을 감지하는 방법.
    newtype
    newtype
    지극히 개인적인 지식의 창고

    티스토리툴바