亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? httpd.h

?? 嵌入式操作系統(tǒng)ECOS的網(wǎng)絡(luò)開發(fā)包
?? H
字號:
#ifndef CYGONCE_NET_HTTPD_HTTPD_H
#define CYGONCE_NET_HTTPD_HTTPD_H
/* =================================================================
 *
 *      httpd.h
 *
 *      A simple embedded HTTP server
 *
 * ================================================================= 
 * ####ECOSGPLCOPYRIGHTBEGIN####
 * -------------------------------------------
 * This file is part of eCos, the Embedded Configurable Operating
 * System.
 * Copyright (C) 2002 Nick Garnett
 * 
 * eCos is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 or (at your option)
 * any later version.
 * 
 * eCos is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with eCos; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 * 
 * As a special exception, if other files instantiate templates or
 * use macros or inline functions from this file, or you compile this
 * file and link it with other works to produce a work based on this
 * file, this file does not by itself cause the resulting work to be
 * covered by the GNU General Public License. However the source code
 * for this file must still be made available in accordance with
 * section (3) of the GNU General Public License.
 * 
 * This exception does not invalidate any other reasons why a work
 * based on this file might be covered by the GNU General Public
 * License.
 *
 * -------------------------------------------
 * ####ECOSGPLCOPYRIGHTEND####
 * =================================================================
 * #####DESCRIPTIONBEGIN####
 * 
 *  Author(s):    nickg@calivar.com
 *  Contributors: nickg@calivar.com
 *  Date:         2002-10-14
 *  Purpose:      
 *  Description:  
 *               
 * ####DESCRIPTIONEND####
 * 
 * =================================================================
 */

#include <pkgconf/system.h>
#include <pkgconf/isoinfra.h>
#include <pkgconf/httpd.h>

#include <cyg/hal/hal_tables.h>

#include <stdio.h>

/* ================================================================= */
/* Lookup Table
 *
 * 
 */

typedef cyg_bool cyg_httpd_handler(FILE *client, char *filename,
                              char *formdata, void *arg);

struct cyg_httpd_table_entry
{
    char                *pattern;
    cyg_httpd_handler   *handler;
    void                *arg;
} CYG_HAL_TABLE_TYPE;

typedef struct cyg_httpd_table_entry cyg_httpd_table_entry;

#define CYG_HTTPD_TABLE_ENTRY( __name, __pattern, __handler, __arg ) \
cyg_httpd_table_entry __name CYG_HAL_TABLE_ENTRY( httpd_table ) = { __pattern, __handler, __arg } 

/* ================================================================= */
/* Useful handler functions
 */

/* ----------------------------------------------------------------- */
/*
 */

__externC int cyg_httpd_send_html( FILE *client, char *filename,
                                   char *request, void *arg );

/* ----------------------------------------------------------------- */
/*
 */

typedef struct
{
    char        *content_type;
    cyg_uint32  content_length;
    cyg_uint8   *data;
} cyg_httpd_data;

__externC int cyg_httpd_send_data( FILE *client, char *filename,
                                   char *request, void *arg );

#define CYG_HTTPD_DATA( __name, __type, __length, __data ) \
cyg_httpd_data __name = { __type, __length, __data }

/* ================================================================= */
/* HTTP and HTML helper macros and functions
 */

/* ----------------------------------------------------------------- */
/* HTTP header support
 *
 * cyg_http_start() sends an HTTP header with the given content type
 * and length. cyg_http_finish() terminates an HTTP send.
 * html_begin() starts an HTML document, and html_end() finishes it.
 */

__externC void cyg_http_start( FILE *client, char *content_type,
                               int content_length );
__externC void cyg_http_finish( FILE *client );

#define html_begin(__client)                            \
        cyg_http_start( __client, "text/html", 0 );     \
        html_tag_begin( __client, "html", "" )

#define html_end( __client )                    \
        html_tag_end( __client, "html" );       \
        cyg_http_finish( __client )

/* ----------------------------------------------------------------- */
/*
 */


__externC void cyg_html_tag_begin( FILE *client, char *tag, char *attr );
__externC void cyg_html_tag_end( FILE *client, char *tag );

#define html_tag_begin( __client, __tag, __attr ) \
        cyg_html_tag_begin( __client, __tag, __attr )

#define html_tag_end( __client, __tag ) cyg_html_tag_end( __client, __tag )


/* ----------------------------------------------------------------- */
/*
 */


#define html_head( __client, __title, __meta )                          \
{                                                                       \
    fprintf(__client, "<%s><%s>", "head", "title" );                    \
    fputs( __title, __client );                                         \
    fprintf(__client, "</%s>%s</%s>\n", "title", __meta, "head");       \
}

#define html_body_begin( __client, __attr )     \
        cyg_html_tag_begin( __client, "body", __attr );

#define html_body_end( __client )               \
        cyg_html_tag_end( __client, "body" );

#define html_heading( __client, __level, __heading ) \
    fprintf(__client,"<h%d>%s</h%d>\n",__level,__heading,__level);

/* ----------------------------------------------------------------- */
/*
 */


#define html_url( __client, __text, __link ) \
        fprintf( __client, "<a href=\"%s\">%s</a>\n",__link,__text);

#define html_para_begin( __client, __attr )     \
        cyg_html_tag_begin( __client, "p", __attr );

#define html_image( __client, __source, __alt, __attr )                 \
        fprintf( __client, "<%s %s=\"%s\" %s=\"%s\" %s>\n", "img",      \
                 "src",__source,                                        \
                 "alt",__alt,                                           \
                 (__attr)?(__attr):"" );

/* ----------------------------------------------------------------- */
/*
 */


#define html_table_begin( __client, __attr )     \
        cyg_html_tag_begin( __client, "table", __attr );

#define html_table_end( __client )               \
        cyg_html_tag_end( __client, "table" );

#define html_table_header( __client, __content, __attr )        \
{                                                               \
    cyg_html_tag_begin( __client, "th", __attr);                \
    fputs( __content, __client );                               \
    cyg_html_tag_end( __client, "th" );                         \
}

#define html_table_row_begin( __client, __attr )     \
        cyg_html_tag_begin( __client, "tr", __attr );

#define html_table_row_end( __client )               \
        cyg_html_tag_end( __client, "tr" );

#define html_table_data_begin( __client, __attr )     \
        cyg_html_tag_begin( __client, "td", __attr );

#define html_table_data_end( __client )               \
        cyg_html_tag_end( __client, "td" );

/* ----------------------------------------------------------------- */
/*
 */


#define html_form_begin( __client, __url, __attr )      \
        fprintf(__client, "<%s %s=\"%s\" %s>\n","form", \
                "action",__url,                         \
                (__attr)?(__attr):"" );

#define html_form_end( __client )               \
        cyg_html_tag_end( __client, "form" );

#define html_form_input( __client, __type, __name, __value, __attr )            \
{                                                                               \
    char *__lattr = (__attr);                                                   \
    fprintf(__client, "<%s %s=\"%s\" %s=\"%s\" %s=\"%s\" %s>\n","input",        \
            "type",__type,                                                      \
            "name",__name,                                                      \
            "value",__value,                                                    \
            __lattr?__lattr:"" );                                               \
}

#define html_form_input_radio( __client, __name, __value, __checked ) \
        html_form_input( __client, "radio", __name, __value, (__checked)?"checked":"" )

#define html_form_input_checkbox( __client, __name, __value, __checked ) \
        html_form_input( __client, "checkbox", __name, __value, (__checked)?"checked":"" )

#define html_form_input_hidden( __client, __name, __value ) \
        html_form_input( __client, "hidden", __name, __value, "" )

#define html_form_select_begin( __client, __name, __attr )      \
        fprintf( __client, "<%s %s=\"%s\" %s>\n","select",      \
                 "name",__name,                                 \
                 (__attr)?(__attr):"" );

#define html_form_option( __client, __value, __label, __selected )      \
        fprintf( __client, "<%s %s=\"%s\" %s>\n","option",              \
                 "value", __value,                                      \
                 (__selected)?"selected":"" );                          \
        fputs(__label, __client );

#define html_form_select_end( __client ) \
        cyg_html_tag_end( __client, "select" );


/* ================================================================= */
/*
 */


__externC void cyg_formdata_parse( char *data, char *list[], int size );

__externC char *cyg_formlist_find( char *list[], char *name );

/* ----------------------------------------------------------------- */
#endif /* CYGONCE_NET_HTTPD_HTTPD_H                                  */
/* end of httpd.c                                                    */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成a人无v码亚洲福利| 国产.精品.日韩.另类.中文.在线.播放 | 欧美午夜片在线看| 韩国欧美国产1区| 一区二区免费在线播放| 久久久精品tv| 亚洲人快播电影网| 26uuu亚洲| 欧美老肥妇做.爰bbww视频| 99热99精品| 国产一区二区美女| 日韩电影在线免费| 一二三区精品视频| 亚洲欧洲www| 国产女同互慰高潮91漫画| 日韩欧美一级片| 在线播放国产精品二区一二区四区| 9久草视频在线视频精品| 国产精品一二三区| 精品在线播放免费| 麻豆一区二区在线| 亚洲高清一区二区三区| 一区二区三区在线不卡| 最新不卡av在线| 久久麻豆一区二区| 精品裸体舞一区二区三区| 欧美美女bb生活片| 欧美性色黄大片| 欧美在线视频全部完| 99热这里都是精品| 91色综合久久久久婷婷| voyeur盗摄精品| 成人白浆超碰人人人人| 成人高清视频免费观看| 国产成人在线网站| 国产高清一区日本| 成人av网站在线观看免费| 成人一区在线看| av激情亚洲男人天堂| 不卡的av电影| 97久久人人超碰| 色天天综合久久久久综合片| 一本久久综合亚洲鲁鲁五月天| 91在线观看视频| 在线免费观看不卡av| 欧美乱妇20p| 日韩三级高清在线| 欧美精品一区二区三区很污很色的 | 亚洲精品水蜜桃| 亚洲综合视频在线观看| 首页欧美精品中文字幕| 日本成人超碰在线观看| 久久99国内精品| 国产精品一区二区三区乱码| 成人免费看片app下载| 91视视频在线观看入口直接观看www| 91亚洲国产成人精品一区二区三 | 日本aⅴ免费视频一区二区三区 | 久久99精品一区二区三区| 国产毛片一区二区| 99精品视频在线免费观看| 欧洲色大大久久| 日韩一区国产二区欧美三区| 久久久亚洲精华液精华液精华液| 国产欧美精品一区| 一区二区三区四区不卡视频| 日韩电影免费在线看| 黄页视频在线91| 99久精品国产| 欧美一级二级在线观看| 久久精品亚洲麻豆av一区二区| 中文字幕一区二区三区四区不卡| 亚洲一区二区不卡免费| 激情综合色丁香一区二区| 97精品久久久久中文字幕| 欧美一个色资源| 中文字幕日韩精品一区 | 91在线免费看| 日韩区在线观看| 中文字幕在线一区二区三区| 亚洲va欧美va国产va天堂影院| 久久99热99| 日本精品视频一区二区| www国产精品av| 亚洲一区二区美女| 国产91综合一区在线观看| 欧美美女网站色| 国产精品国产三级国产三级人妇| 亚洲国产另类av| 国产电影精品久久禁18| 欧美视频日韩视频在线观看| 国产拍欧美日韩视频二区| 亚洲成a人v欧美综合天堂下载 | 国产色产综合产在线视频| 亚洲最色的网站| 国产电影精品久久禁18| 正在播放亚洲一区| 综合久久综合久久| 激情成人综合网| 这里只有精品99re| 亚洲免费电影在线| 国产精品资源在线| 欧美日韩午夜在线| 国产精品视频在线看| 日本不卡一区二区三区高清视频| 97久久人人超碰| 久久精品一区二区三区四区| 午夜精品在线看| 色婷婷综合五月| 国产喷白浆一区二区三区| 久久国产尿小便嘘嘘| 欧美美女视频在线观看| 一区二区欧美精品| 色综合天天视频在线观看| 国产欧美精品区一区二区三区| 日韩成人精品在线观看| 欧美婷婷六月丁香综合色| 亚洲日本丝袜连裤袜办公室| 国产成人精品免费视频网站| 精品福利一区二区三区免费视频| 亚洲国产婷婷综合在线精品| 成人污视频在线观看| 国产精品女主播av| 懂色av中文字幕一区二区三区| 日韩欧美另类在线| 日韩精品一级二级 | 国产精品二三区| 成人动漫视频在线| 中文字幕亚洲精品在线观看| 成人av资源在线观看| 国产精品久久久久一区二区三区 | 蜜臀99久久精品久久久久久软件| 欧美片网站yy| 日本成人在线网站| 日韩精品一区二| 久久精品99国产精品日本| 欧美大片一区二区三区| 久久99国产精品久久99果冻传媒| 日韩精品一区二区三区四区| 韩国女主播一区二区三区| 久久新电视剧免费观看| 国产在线一区观看| 久久综合资源网| 国产伦精一区二区三区| 国产日韩欧美a| 不卡免费追剧大全电视剧网站| |精品福利一区二区三区| 91麻豆免费观看| 一区二区三区四区在线免费观看 | 亚洲成人精品在线观看| 在线成人av影院| 久久99国产精品麻豆| 国产精品你懂的| 91麻豆精品在线观看| 午夜激情久久久| 精品国产自在久精品国产| 国产成人免费av在线| 亚洲欧洲色图综合| 91福利社在线观看| 免费观看30秒视频久久| 国产午夜精品一区二区三区四区 | 91福利精品第一导航| 日韩国产在线一| 久久久噜噜噜久噜久久综合| 成人免费视频播放| 午夜精品久久久久久久久久久 | 亚洲二区在线观看| 亚洲精品在线电影| av成人老司机| 青娱乐精品在线视频| 国产欧美日韩另类一区| 91同城在线观看| 日本欧美一区二区| 日本一区二区高清| 在线成人小视频| 成人国产精品免费观看视频| 亚洲一区二区三区四区五区中文 | 久久99国产乱子伦精品免费| 最新国产精品久久精品| 日韩欧美一区二区视频| 91丨porny丨蝌蚪视频| 美女高潮久久久| 亚洲精品高清视频在线观看| 日韩久久久精品| 欧美性生活影院| 成人综合婷婷国产精品久久蜜臀| 亚洲国产成人porn| 国产精品私人影院| 日韩欧美亚洲一区二区| 91蜜桃婷婷狠狠久久综合9色| 秋霞午夜av一区二区三区| 日韩一区在线播放| 亚洲精品一区二区三区在线观看| 欧美伊人久久久久久午夜久久久久| 激情成人午夜视频| 天天综合网天天综合色| 亚洲视频在线一区二区| 亚洲精品一区二区精华| 欧美人狂配大交3d怪物一区| 91女厕偷拍女厕偷拍高清|