lighttpd-cpp

码农软件 · 软件分类 · 其他开发相关 · 2019-10-29 15:42:39

软件介绍

lighttpd-cpp 是一个 C++ 的助手类用来快速创建 lighttpd 的扩展模块,该助手类封装了很多模块编写的复杂度,如下面代码所示:

#include <lighttpd-cpp/plugin.hpp>
#include <boost/mpl/list.hpp>
#include <string>

class mod_blank : public Plugin< mod_blank >
{
public:
        mod_blank( server& srv )
         :      Plugin< mod_blank >( srv ),
                some_string             ( "some_string" ),
                some_int                ( "some_int" ),
                some_bool               ( "some_bool" ),
                some_short              ( "some_short" )
        {}

        typedef boost::mpl::list<       UriRawHandler,
                                        UriCleanHandler,
                                        DocRootHandler,
                                        PhysicalHandler,
                                        StartBackendHandler > handlers;

        handler_t handle_uri_raw( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_uri_clean( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_docroot( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_physical( connection& con ){ return HANDLER_GO_ON; }
        handler_t handle_start_backend( connection& con ){ return HANDLER_GO_ON; }

        config_option< std::string >    some_string;
        config_option< int >            some_int;
        config_option< bool >           some_bool;
        config_option< short >          some_short;
};

MAKE_PLUGIN( mod_blank, "blank", LIGHTTPD_VERSION_ID );

本文地址:https://codercto.com/soft/d/17827.html

Linux C编程一站式学习

Linux C编程一站式学习

宋劲杉 / 电子工业出版社 / 2009-12 / 60.00元

本书有两条线索,一条线索是以Linux平台为载体全面深入地介绍C语言的语法和程序的工作原理,另一条线索是介绍程序设计的基本思想和开发调试方法。本书分为两部分:第一部分讲解编程语言和程序设计的基本思想方法,让读者从概念上认识C语言;第二部分结合操作系统和体系结构的知识讲解程序的工作原理,让读者从本质上认识C语言。. 本书适合做零基础的初学者学习C语言的第一本教材,帮助读者打下牢固的基础。有一定......一起来看看 《Linux C编程一站式学习》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换