資源簡介
vue+ivew管理系統vue+ivew管理系統vue+ivew管理系統vue+ivew管理系統vue+ivew管理系統
代碼片段和文件信息
/**
?*?Flash?Socket?Policy?Apache?Module.
?*
?*?This?module?provides?a?flash?socket?policy?file?on?the?same?port?that
?*?serves?HTTP?on?Apache.?This?can?help?simplify?setting?up?a?server?that
?*?supports?cross-domain?communication?with?flash.
?*
?*?Quick?note?about?Apache?memory?handling:?Data?is?allocated?from?pools?and
?*?is?not?manually?returned?to?those?pools.?The?pools?are?typically?considered
?*?short-lived?and?will?be?cleaned?up?automatically?by?Apache.
?*
?*?@author?Dave?Longley
?*
?*?Copyright?(c)?2010?Digital?Bazaar?Inc.?All?rights?reserved.
?*/
#include?“httpd.h“
#include?“http_config.h“
#include?“http_core.h“
#include?“ap_compat.h“
#include?
//?length?of?a?policy?file?request
#define?PFR_LENGTH?23
//?declare?main?module
module?AP_MODULE_DECLARE_DATA?fsp_module;
//?configuration?for?the?module
typedef?struct?fsp_config
{
???//?the?cross-domain?policy?to?serve
???char*?policy;
???apr_size_t?policy_length;
}?fsp_config;
//?filter?state?for?keeping?track?of?detected?policy?file?requests
typedef?struct?filter_state
{
???fsp_config*?cfg;
???int?checked;
???int?found;
}?filter_state;
//?for?registering?hooks?filters?etc.
static?void?fsp_register_hooks(apr_pool_t?*p);
static?int?fsp_pre_connection(conn_rec?*c?void?*csd);
//?filter?handler?declarations
static?apr_status_t?fsp_input_filter(
???ap_filter_t*?f?apr_bucket_brigade*?bb
ap_input_mode_t?mode?apr_read_type_e?block?apr_off_t?nbytes);
static?int?fsp_output_filter(ap_filter_t*?f?apr_bucket_brigade*?bb);
/**
?*?Registers?the?hooks?for?this?module.
?*
?*?@param?p?the?pool?to?allocate?from?if?necessary.
?*/
static?void?fsp_register_hooks(apr_pool_t*?p)
{
???//?registers?the?pre-connection?hook?to?handle?adding?filters
???ap_hook_pre_connection(
??????fsp_pre_connection?NULL?NULL?APR_HOOK_MIDDLE);
???//?will?parse?a?policy?file?request?to?be?added?in?pre_connection
???ap_register_input_filter(
??????“fsp_request“?fsp_input_filter
??????NULL?AP_FTYPE_CONNECTION);
???//?will?emit?a?cross-domain?policy?response?to?be?added?in?pre_connection
???ap_register_output_filter(
??????“fsp_response“?fsp_output_filter
??????NULL?AP_FTYPE_CONNECTION);
}
/**
?*?A?hook?that?is?called?before?a?connection?is?handled.?This?function?will
?*?get?the?module?configuration?and?add?the?flash?socket?policy?filters?if
?*?a?cross-domain?policy?has?been?specified?in?the?configuration.
?*
?*?@param?c?the?connection.
?*?@param?csd?the?connection?socket?descriptor.
?*
?*?@return?OK?on?success.
?*/
static?int?fsp_pre_connection(conn_rec*?c?void*?csd)
{
???//?only?install?filters?if?a?policy?was?specified?in?the?module?config
???fsp_config*?cfg?=?ap_get_module_config(
??????c->base_server->module_config?&fsp_module);
???if(cfg->policy?!=?NULL)
???{
??????//?allocate?filter?state
??????filter_state*?state?=?apr_palloc(c->pool?sizeof(filter_state));
??????if(state?!=?NULL)
??????{
?????????//?initialize?state
?????????state->cfg?=?cfg;
?????????state->checked?=?state->found?=?0;
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????72??2017-12-14?15:00??.babelrc
?????文件?????????147??2017-12-14?15:00??.editorconfig
?????文件?????????127??2017-12-14?15:00??.gitignore
?????目錄???????????0??2018-01-08?15:35??assets\
?????目錄???????????0??2018-02-07?09:17??assets\css\
?????文件????????1604??2018-01-31?11:13??assets\css\login.css
?????文件?????????943??2018-02-07?09:17??assets\css\main.css
?????文件??????????93??2017-12-29?16:44??assets\css\menu.css
?????文件?????????584??2018-02-06?15:48??assets\css\projectList.css
?????目錄???????????0??2018-02-07?09:17??assets\img\
?????文件????????3717??2017-12-25?15:31??assets\img\favicon.png
?????文件????????1193??2018-02-06?15:48??assets\img\Gis.png
?????文件????????1415??2018-02-06?15:48??assets\img\Gis1.png
?????文件??????702179??2017-12-25?15:44??assets\img\loginbg.png
?????文件????????3170??2017-12-25?15:34??assets\img\logo.png
?????文件????????1862??2018-01-10?11:41??assets\img\noImg.png
?????文件?????????834??2018-02-06?15:48??assets\img\plan.png
?????文件????????1066??2018-01-31?11:13??assets\img\qqIcon.png
?????文件???????29923??2018-02-07?09:17??assets\img\u30.png
?????文件?????????880??2018-01-31?11:13??assets\img\wechat.png
?????文件??????130902??2018-02-06?15:48??assets\img\工程特性表.jpg
?????文件??????126193??2018-02-06?15:48??assets\img\投資估算表.png
?????文件???????50531??2018-01-18?10:21??BIMWeb.njsproj
?????目錄???????????0??2018-01-09?10:32??dist\
?????文件??????366750??2018-01-11?13:55??dist\build.js
?????文件?????1770725??2018-01-11?13:55??dist\build.js.map
?????文件????????2886??2018-01-11?13:55??dist\collapse.png
?????文件????????2894??2018-01-11?13:55??dist\expand.png
?????文件????????3717??2018-01-11?13:55??dist\favicon.png
?????文件??????303717??2018-01-11?13:55??dist\iconfont.svg
?????文件?????????701??2018-01-11?13:55??dist\loading.gif
............此處省略15696個文件信息
評論
共有 條評論