GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cccZone/webcppd: 基于C++ Poco框架的HTTP动态服务器

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
lib
lib
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
webcppd.properties
webcppd.properties
 
 

Repository files navigation

webcpps

基于C++ Poco框架的HTTP动态服务器

纯C++开发,基于Poco框架,高性能、多线程

目标单一:纯动态资源服务器

依赖

  • PocoUtil
  • PocoNet
  • PocoFoundation

使用方法

webcppd是基于动态库加载的web动态服务器 通过配置文件配置动态库搜索目录 通过url(/a/b/c)指定动态库(liba.so)和需要运行的函数(bImpl),默认动态库名为libhome.so,默认运行函数是indexImpl。系统仅仅捕捉a和b,其余部分可选,例如c的含义由开发者自行定义使用。

编译: make 即可

清理: make clean 即可

运行: make run 即可

停止: make stop 即可

开发

开发者的工作很简单。只需三步:

  • 编写Poco::Net::HTTPRequestHandler的子类例如A,实现void handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
  • 编写 extern "C" Poco::Net::HTTPRequestHandler* aImpl()函数,返回 new A;
  • 编译为动态库例如libA.so并把动态库放置在配置的搜索目录中,测试访问http://localhost:8888/A/a即可

相关文章

Poco HTTP 服务器

About

基于C++ Poco框架的HTTP动态服务器

Resources

Readme
GPL-3.0 license
Activity

Stars

7 stars

Watchers

1 watching

Forks

39 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.