摘要: 1,configure 命令行参数处理2,初始化各种文件路径3,分析源码结构4,生成编译过程中所需路径5,准备 .h,.err等编译所需文件6,写入命令行参数7,检测环境(系统,编译器,第三方库...)8,处理nginx,conf文件等的路径9,创建makefile文件10,加入第三方库,头文件等1... 阅读全文
posted @ 2015-07-01 13:44 湛雷冲 阅读(484) 评论(0) 推荐(0) 编辑
摘要: Name:libwebsocket_cancel_service - Cancel servicing of pending websocket activitySynopsis:void libwebsocket_cancel_service (struct libwebsocket_contex... 阅读全文
posted @ 2015-06-28 16:55 湛雷冲 阅读(8269) 评论(0) 推荐(0) 编辑
摘要: version.h #define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014" #define SERVER_URL "http://www.acme.com/software/mini_httpd/"port.h #define OS_... 阅读全文
posted @ 2015-06-17 15:19 湛雷冲 阅读(651) 评论(0) 推荐(0) 编辑
摘要: //字符串匹配,匹配返回 1,否则返回 0.//pattern可以通过任意个 | 字符,组合match_one中pattern的功能intmatch(const char* pattern, const char* string){ const char* or; for (;;) ... 阅读全文
posted @ 2015-06-17 14:27 湛雷冲 阅读(377) 评论(0) 推荐(0) 编辑
摘要: ///关联字符串和整数struct strlong { char* s; long l;};///将字符串中的大写字母转换成小写字母static void pound_case(char* str)//比较stlong类型中字符串*s,用strcmp比较static int strlon... 阅读全文
posted @ 2015-06-17 13:41 湛雷冲 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 针对不同系统的宏定义,对于Linux而言/* port.h - portability defines */#elif defined(linux)# define OS_Linux# define ARCH "Linux"#ifdef OS_Linux# define HAVE_DAEMON# d... 阅读全文
posted @ 2015-06-17 12:46 湛雷冲 阅读(283) 评论(0) 推荐(0) 编辑
摘要: /* version.h - version defines for mini_httpd */#ifndef _VERSION_H_#define _VERSION_H_#define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014"#define SERVE... 阅读全文
posted @ 2015-06-17 12:39 湛雷冲 阅读(475) 评论(0) 推荐(0) 编辑
摘要: boa1, SERVER_ROOT自定义,define.h头文件中,默认“/etc/boa"2,./configure3,修改CC,默认CC=gcc,make4,errorutil.c: In function ‘get_commonlog_time’:util.c:100:39: error: p... 阅读全文
posted @ 2015-06-14 19:20 湛雷冲 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 1,childNodes,包含这个元素全部子元素的数组;2,nodeType, 元素节点的nodeType属性值是1; 属性节点............................2; 文本节点............................3;3,no... 阅读全文
posted @ 2015-06-09 15:11 湛雷冲 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-06-09 09:38 湛雷冲 阅读(196) 评论(0) 推荐(0) 编辑