01 2014 档案

摘要:#ifndef __SIGNAL_COMMON_H#define __SIGNAL_COMMON_H#include #define NGX_OK 0#define NGX_ERROR -1#define NGX_AGAIN -2#define NGX_BUSY -3#define NGX_DONE -4#define NGX_DECLINED -5#define NGX_ABORT -6#define ngx_memset_zero(bu... 阅读全文
posted @ 2014-01-21 12:22 holycrap 阅读(224) 评论(0) 推荐(0)
摘要:#include #include #include #include "mime.h"#include "http_common.h"static const char* methods[]={ "GET", "POST"};static int get_version(const char* versionPos, char* version){ char* versionEnd = NULL; int versionlen = 0; if(versionPos == NULL || version == NU 阅读全文
posted @ 2014-01-14 15:01 holycrap 阅读(195) 评论(0) 推荐(0)
摘要:#include #include #include #include #include /*-----------------------------------------------------------------functionname: file_existparam: NAreturn: NAauthor: xxxx check if file is exist in webapp history: create by xxxx, 2014.1.08, add simple abilities-------------------------... 阅读全文
posted @ 2014-01-14 14:39 holycrap 阅读(163) 评论(0) 推荐(0)
摘要:#include #include "mime.h"static STR_MIME_MAP mime_map[]= { MIME_MAP(MIME_STR_GEN) };void get_mime_type(const char* filename, EN_MIME_TYPE* filetype){ int i =0; for(i=0; i MIME_ELSE || filetype < 0) return NULL; return mime_map[filetype].mimetype;}#ifndef __MIME__H#defi... 阅读全文
posted @ 2014-01-14 14:38 holycrap 阅读(261) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include #include "mime.h"#include "http_common.h"#include "http_webapp.h"static STR_STATUS_MAP resp_map[]={HTTP_STATUS_MAP(HTTP_MAP_GEN)};/*------------------------------------------------------------------------------------ 阅读全文
posted @ 2014-01-14 14:37 holycrap 阅读(204) 评论(0) 推荐(0)
摘要:/**************************************************************** filename: http_server.c author: xxxx function: Main file of http server Impliment the response of Get and Post mehtods history: created by xxxx date: 2014.01.03 **********... 阅读全文
posted @ 2014-01-14 14:36 holycrap 阅读(301) 评论(0) 推荐(0)
摘要:http://www.csdn.net/article/2013-08-15/2816581-What-I-learned-from-other-s-shell-scripts 阅读全文
posted @ 2014-01-03 16:14 holycrap 阅读(130) 评论(0) 推荐(0)