摘要:
1,configure 命令行参数处理2,初始化各种文件路径3,分析源码结构4,生成编译过程中所需路径5,准备 .h,.err等编译所需文件6,写入命令行参数7,检测环境(系统,编译器,第三方库...)8,处理nginx,conf文件等的路径9,创建makefile文件10,加入第三方库,头文件等1... 阅读全文
摘要:
Name:libwebsocket_cancel_service - Cancel servicing of pending websocket activitySynopsis:void libwebsocket_cancel_service (struct libwebsocket_contex... 阅读全文
摘要:
version.h #define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014" #define SERVER_URL "http://www.acme.com/software/mini_httpd/"port.h #define OS_... 阅读全文
摘要:
//字符串匹配,匹配返回 1,否则返回 0.//pattern可以通过任意个 | 字符,组合match_one中pattern的功能intmatch(const char* pattern, const char* string){ const char* or; for (;;) ... 阅读全文
摘要:
///关联字符串和整数struct strlong { char* s; long l;};///将字符串中的大写字母转换成小写字母static void pound_case(char* str)//比较stlong类型中字符串*s,用strcmp比较static int strlon... 阅读全文
摘要:
针对不同系统的宏定义,对于Linux而言/* port.h - portability defines */#elif defined(linux)# define OS_Linux# define ARCH "Linux"#ifdef OS_Linux# define HAVE_DAEMON# d... 阅读全文
摘要:
/* version.h - version defines for mini_httpd */#ifndef _VERSION_H_#define _VERSION_H_#define SERVER_SOFTWARE "mini_httpd/1.21 18oct2014"#define SERVE... 阅读全文
摘要:
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... 阅读全文