http server handle a http/request

本文详细介绍了EmWebServer处理HTTP请求的过程,从初始化请求到发送响应的每一个步骤,包括网络处理、认证支持、URL钩子配置等内容。

在收到了HTTP request后,调用次序如下:

ewsNetHTTPStart() //initialize the request

//Server会创建一个request context对象,来描述request的所有信息,以及内部关于处理request的状态的信息,eg EwsContext ewsContext;

ewsContextNetHandle() //retrieve the network handle during request processing

ewsNetHTTPReceive() //transfer the data to the EmWeb Server

ewsRun() //start the request processing

ewaURLHook() //If you have configured the server for URL hook support, it will pass control to your application.

ewaAuth...() //If you have configured the server for authentication, the server will validate the user credentials before it will grant access to the requested resource

                      ewsNetHTTPCleanup() //If access is not authorized, the server sends a 401 Unauthorized HTTP response an calls the

ewsContext...() //deal with the request

ewaNetHTTPSend() //to send the content to brower

ewsNetHTTPCleanup()

onvif_server/soap_request/soap_tds.c:21:22: error: extra tokens at end of #include directive [-Werror] #include "soap_tr2.h"* ^ onvif_server/soap_request/soap_tds.c:31:1: error: multiple storage classes in declaration specifiers LOCAL typedef struct { ^ onvif_server/soap_request/soap_tds.c:226:61: error: expected declaration specifiers or '...' before 'ServiceParams' LOCAL S32 soap_out_tds_get_services_rsp(ONVIF_BUF *xml_buf, ServiceParams *params) ^ onvif_server/soap_request/soap_tds.c: In function 'soap_tds_get_services_handle': onvif_server/soap_request/soap_tds.c:2631:2: error: statement with no effect [-Werror=unused-value] ServiceParams params; ^ onvif_server/soap_request/soap_tds.c:2631:16: error: expected ';' before 'params' ServiceParams params; ^ onvif_server/soap_request/soap_tds.c:2632:2: error: 'params' undeclared (first use in this function) params.include_cap = include_cap; ^ onvif_server/soap_request/soap_tds.c:2632:2: note: each undeclared identifier is reported only once for each function it appears in onvif_server/soap_request/soap_tds.c:2635:38: error: 'soap_out_tds_get_services_rsp' undeclared (first use in this function) return soap_generate_xml((p_out_fun)soap_out_tds_get_services_rsp, soap, &params); ^ onvif_server/soap_request/soap_tds.c:2644:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors <builtin>: recipe for target 'onvif_server/soap_request/soap_tds.o' failed make[5]: *** [onvif_server/soap_request/soap_tds.o] Error 1 make[5]: Leaving directory '/home/linzihao/Code/onvif1/NVMP/nvmp/build_dir/target-mips-openwrt-linux-uclibc-c200v5/nsd/modules/onvif'_这是什么报错
最新发布
11-27
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值