⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apache2::module.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "ret: $minor_version ( integer )" 4.el .IP "ret: \f(CW$minor_version\fR ( integer )" 4.IX Item "ret: $minor_version ( integer )".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.PP\&\f(CW\*(C`ap_api_minor_version()\*(C'\fR provides \s-1API\s0 feature milestones..PPIt's not checked during module init..ie n .Sh """cmds""".el .Sh "\f(CWcmds\fP".IX Subsection "cmds"Get the \f(CW\*(C`Apache2::Command\*(C'\fR object,describing all of the directives this module defines..PP.Vb 1\&  $command = $module\->cmds();.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "ret: $command\fR ( \f(CW""Apache2::Command object"" )" 4.el .IP "ret: \f(CW$command\fR ( \f(CWApache2::Command object\fR )" 4.IX Item "ret: $command ( Apache2::Command object )".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.ie n .Sh """get_config""".el .Sh "\f(CWget_config\fP".IX Subsection "get_config"Retrieve a module's configuration. Used by configuration directives..PP.Vb 4\&  $cfg = Apache2::Module::get_config($class, $server, $dir_config);\&  $cfg = Apache2::Module::get_config($class, $server);\&  $cfg =          $self\->get_config($server, $dir_config);\&  $cfg =          $self\->get_config($server);.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "arg1: $class ( string )" 4.el .IP "arg1: \f(CW$class\fR ( string )" 4.IX Item "arg1: $class ( string )".PDThe Perl package this configuration is for.ie n .IP "arg2: $server\fR ( \f(CW""Apache2::ServerRec object"" )" 4.el .IP "arg2: \f(CW$server\fR ( \f(CWApache2::ServerRec object\fR )" 4.IX Item "arg2: $server ( Apache2::ServerRec object )"The current server, typically\&\f(CW\*(C`$r\->server\*(C'\fR or\&\f(CW\*(C`$parms\->server\*(C'\fR..ie n .IP "opt arg3: $dir_config\fR ( \f(CW""Apache2::ConfVector object"" )" 4.el .IP "opt arg3: \f(CW$dir_config\fR ( \f(CWApache2::ConfVector object\fR )" 4.IX Item "opt arg3: $dir_config ( Apache2::ConfVector object )"By default, the configuration returned is the server level one. Toretrieve the per directory configuration, use\&\f(CW\*(C`$r\->per_dir_config\*(C'\fR as alast argument..ie n .IP "ret: $cfg (\s-1HASH\s0 reference)" 4.el .IP "ret: \f(CW$cfg\fR (\s-1HASH\s0 reference)" 4.IX Item "ret: $cfg (HASH reference)"A reference to the hash holding the module configuration data..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPSee also Apache Server Configuration Customization inPerl..ie n .Sh """find_linked_module""".el .Sh "\f(CWfind_linked_module\fP".IX Subsection "find_linked_module"Find a module based on the name of the module.PP.Vb 1\&  $module = Apache2::Module::find_linked_module($name);.Ve.ie n .IP "arg1: $name ( string )" 4.el .IP "arg1: \f(CW$name\fR ( string )" 4.IX Item "arg1: $name ( string )"The name of the module ending in \f(CW\*(C`.c\*(C'\fR.ie n .IP "ret: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "ret: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "ret: $module ( Apache2::Module object )"The module object if found, \f(CW\*(C`undef\*(C'\fR otherwise..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPFor example:.PP.Vb 1\&  my $module = Apache2::Module::find_linked_module(\*(Aqmod_ssl.c\*(Aq);.Ve.ie n .Sh """loaded""".el .Sh "\f(CWloaded\fP".IX Subsection "loaded"Determine if a certain module is loaded.PP.Vb 1\&  $loaded = Apache2::Module::loaded($module);.Ve.ie n .IP "name: $module ( string )" 4.el .IP "name: \f(CW$module\fR ( string )" 4.IX Item "name: $module ( string )"The name of the module to search for..SpIf \f(CW$module\fR ends with \f(CW\*(C`.c\*(C'\fR, search all the modules, staticallycompiled and dynamically loaded..SpIf \f(CW$module\fR ends with \f(CW\*(C`.so\*(C'\fR, search only the dynamically loadedmodules..SpIf \f(CW$module\fR doesn't contain a \f(CW\*(C`.\*(C'\fR, search the loaded Perl modules(checks \f(CW%INC\fR)..ie n .IP "ret: $loaded ( boolean )" 4.el .IP "ret: \f(CW$loaded\fR ( boolean )" 4.IX Item "ret: $loaded ( boolean )"Returns true if the module is loaded, false otherwise..IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PPFor example, to test if this server supports ssl:.PP.Vb 3\&  if (Apache2::Module::loaded(\*(Aqmod_ssl.c\*(Aq)) {\&      [...]\&  }.Ve.PPTo test is this server dynamically loaded mod_perl:.PP.Vb 3\&  if (Apache2::Module::loaded(\*(Aqmod_perl.so\*(Aq)) {\&      [...]\&  }.Ve.PPTo test if \f(CW\*(C`Apache2::Status\*(C'\fR isloaded:.PP.Vb 3\&  if (Apache2::Module::loaded(\*(AqApache2::Status\*(Aq)) {\&      [...]\&  }.Ve.ie n .Sh """module_index""".el .Sh "\f(CWmodule_index\fP".IX Subsection "module_index"Get the index to this modules structures in config vectors..PP.Vb 1\&  $index = $module\->module_index();.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "ret: $index ( integer )" 4.el .IP "ret: \f(CW$index\fR ( integer )" 4.IX Item "ret: $index ( integer )".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.ie n .Sh """name""".el .Sh "\f(CWname\fP".IX Subsection "name"Get the name of the module's \fI.c\fR file.PP.Vb 1\&  $name = $module\->name();.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "ret: $name ( string )" 4.el .IP "ret: \f(CW$name\fR ( string )" 4.IX Item "ret: $name ( string )".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.PPFor example a mod_perl module, will return: \fImod_perl.c\fR..ie n .Sh """next""".el .Sh "\f(CWnext\fP".IX Subsection "next"Get the next module in the list, \f(CW\*(C`undef\*(C'\fR if this is the last modulein the list..PP.Vb 1\&  $next_module = $module\->next();.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.ie n .IP "ret: $next_module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "ret: \f(CW$next_module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "ret: $next_module ( Apache2::Module object )".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.ie n .Sh """remove_loaded_module""".el .Sh "\f(CWremove_loaded_module\fP".IX Subsection "remove_loaded_module"Remove a module from the list of loaded modules permanently..PP.Vb 1\&  $module\->remove_loaded_module();.Ve.ie n .IP "obj: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "obj: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "obj: $module ( Apache2::Module object )".PD 0.IP "ret: no return value" 4.IX Item "ret: no return value".IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.ie n .Sh """top_module""".el .Sh "\f(CWtop_module\fP".IX Subsection "top_module"Returns the first module in the module list. Usefull to start amodule iteration..PP.Vb 1\&  $module = Apache2::Module::top_module();.Ve.ie n .IP "ret: $module\fR ( \f(CW""Apache2::Module object"" )" 4.el .IP "ret: \f(CW$module\fR ( \f(CWApache2::Module object\fR )" 4.IX Item "ret: $module ( Apache2::Module object )".PD 0.IP "since: 2.0.00" 4.IX Item "since: 2.0.00".PD.SH "See Also".IX Header "See Also"mod_perl 2.0 documentation..SH "Copyright".IX Header "Copyright"mod_perl 2.0 and its core modules are copyrighted underThe Apache Software License, Version 2.0..SH "Authors".IX Header "Authors"The mod_perl development team and numerouscontributors.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -