这是我的页面头部

随笔分类 -  开源\协议\标准

摘要:apache2 的指令按输入来源分为两种:一种称为 command -directive,是在命令行下通过 -c/-C 参数输入的,一种是 resource -directive ,是在配置文件中配置的。两种指令会通过合并,保存到 指令树 conftree 中。process_command_configap_process_resource_config指令存取的步骤:1、读取文件 http.conf到内存,此操作的结果是树 ap_conftree(config.c 中定义的全局变量) 中。ap_read_config(process, ptemp, confname, &ap_co 阅读全文
posted @ 2011-02-22 17:48 范晨鹏 阅读(408) 评论(0) 推荐(0)
摘要:_hook 数据结构Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->12//从ap_hook到ap_run3//宏AP_IMPLEMENT_HOOK_RUN_ALL(int,pre_connection,(conn_rec*c,void*csd),(c,csd),OK,DECLINED);的具体实现4//connection.c5AP_DECLARE(void)ap_hook_pre_connection(ap_HOOK_pre_connec 阅读全文
posted @ 2011-02-16 10:54 范晨鹏 阅读(632) 评论(0) 推荐(0)
摘要:apache2 有两种进程:主进程( master_main)和子进程(child_main )。子进程又派生了三种线程:1、control thread 控制线程。是主线程。负责创建 accept thread, worker threads ,接收和执行 master process的控制指令。* events.2、listener threads 负责处理监听3、worker threads 负责处理数据交互// c:\httpd-2.2.17-win32\server\mpm\winnt\mpm_winnt.cmaster_main()apache2 使用 apr_proc_creat 阅读全文
posted @ 2011-01-19 10:16 范晨鹏 阅读(1991) 评论(0) 推荐(0)
摘要:原文:http://www.cse.wustl.edu/~schmidt/signal-patterns.html应用设计模式简化信号处理道格拉斯.施密特c++ report1998年 4月本文展示了哪些貌似棘手的编程问题可以用基本的设计模式来解决。本文旨在演示设计模式--比如单件(GOF),适配器[GOF],以及钩子[Pree]模式如何地简化了组件的设计,避免了信号和信号捕获的常见的陷阱和缺陷。... 阅读全文
posted @ 2009-12-25 11:33 范晨鹏 阅读(390) 评论(0) 推荐(0)
摘要:发送 socket 数据前,使用 _write 方法 进行 socket 通讯检查的bugversion: gsoap_2.7.13 operate system: windowsxpdescribe: I want to send the http request mulitie times by the same socket. and I coded as follow:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->for(size_ 阅读全文
posted @ 2009-04-12 23:25 范晨鹏 阅读(2087) 评论(0) 推荐(0)
摘要:gsoap Supports serializing of application's native C and C++ data structures, which allows you to save and load of XML serialized data structures to and from files.例如,一个通信服务器程序,我们通常要配置它启动哪些服务。标准的 xml 格式是:常用的 xml 绑定工具有: gSoap,CodeSynthesis XSD 等。gSoap 使用简单,用户群广泛。所以以 gosp 为例进行讲解。支持 UTF-8 、 multiby 阅读全文
posted @ 2009-02-13 21:11 范晨鹏 阅读(2644) 评论(0) 推荐(0)
摘要:The C++ SourceAn Introduction to XMLData Binding in C++by Boris KolpackovMay 4, 2007原文:http://www.artima.com/cppsource/xml_data_binding.html一个c++应用程序需要处理 xml 格式的数据,一般的不外乎有两种存取 xml 的API:文档对象模型(Document Object Model,dom)或者 xml 简单 API。(SAX)。DOM 将xml描述为一个树状的数据结构,以供程序遍历和存取。SAX 是一个事件驱动的 解析的XML API。应用程序注册它 阅读全文
posted @ 2008-11-20 22:47 范晨鹏 阅读(1733) 评论(0) 推荐(0)