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

📄 b.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "B 3".TH B 3 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"B \- The Perl Compiler.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\&        use B;.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"The \f(CW\*(C`B\*(C'\fR module supplies classes which allow a Perl program to delveinto its own innards. It is the module used to implement the\&\*(L"backends\*(R" of the Perl compiler. Usage of the compiler does notrequire knowledge of this module: see the \fIO\fR module for theuser-visible part. The \f(CW\*(C`B\*(C'\fR module is of use to those who want towrite new compiler backends. This documentation assumes that thereader knows a fair amount about perl's internals including suchthings as SVs, OPs and the internal symbol table and syntax treeof a program..SH "OVERVIEW".IX Header "OVERVIEW"The \f(CW\*(C`B\*(C'\fR module contains a set of utility functions for querying thecurrent state of the Perl interpreter; typically these functionsreturn objects from the B::SV and B::OP classes, or their derivedclasses.  These classes in turn define methods for querying theresulting objects about their own internal state..SH "Utility Functions".IX Header "Utility Functions"The \f(CW\*(C`B\*(C'\fR module exports a variety of functions: some are simpleutility functions, others provide a Perl program with a way toget an initial \*(L"handle\*(R" on an internal object..ie n .Sh "Functions Returning ""B::SV""\fP, \f(CW""B::AV""\fP, \f(CW""B::HV""\fP, and \f(CW""B::CV"" objects".el .Sh "Functions Returning \f(CWB::SV\fP, \f(CWB::AV\fP, \f(CWB::HV\fP, and \f(CWB::CV\fP objects".IX Subsection "Functions Returning B::SV, B::AV, B::HV, and B::CV objects"For descriptions of the class hierarchy of these objects and themethods that can be called on them, see below, \*(L"\s-1OVERVIEW\s0 \s-1OF\s0\&\s-1CLASSES\s0\*(R" and \*(L"SV-RELATED \s-1CLASSES\s0\*(R"..IP "sv_undef" 4.IX Item "sv_undef"Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_undef\*(C'\fR..IP "sv_yes" 4.IX Item "sv_yes"Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_yes\*(C'\fR..IP "sv_no" 4.IX Item "sv_no"Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`sv_no\*(C'\fR..IP "svref_2object(\s-1SVREF\s0)" 4.IX Item "svref_2object(SVREF)"Takes a reference to any Perl value, and turns the referred-to valueinto an object in the appropriate B::OP\-derived or B::SV\-derivedclass. Apart from functions such as \f(CW\*(C`main_root\*(C'\fR, this is the primaryway to get an initial \*(L"handle\*(R" on an internal perl data structurewhich can then be followed with the other access methods..SpThe returned object will only be valid as long as the underlying OPsand SVs continue to exist. Do not attempt to use the object after theunderlying structures are freed..IP "amagic_generation" 4.IX Item "amagic_generation"Returns the \s-1SV\s0 object corresponding to the C variable \f(CW\*(C`amagic_generation\*(C'\fR..IP "init_av" 4.IX Item "init_av"Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1INIT\s0 blocks..IP "check_av" 4.IX Item "check_av"Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1CHECK\s0 blocks..IP "unitcheck_av" 4.IX Item "unitcheck_av"Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1UNITCHECK\s0 blocks..IP "begin_av" 4.IX Item "begin_av"Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1BEGIN\s0 blocks..IP "end_av" 4.IX Item "end_av"Returns the \s-1AV\s0 object (i.e. in class B::AV) representing \s-1END\s0 blocks..IP "comppadlist" 4.IX Item "comppadlist"Returns the \s-1AV\s0 object (i.e. in class B::AV) of the global comppadlist..IP "regex_padav" 4.IX Item "regex_padav"Only when perl was compiled with ithreads..IP "main_cv" 4.IX Item "main_cv"Return the (faked) \s-1CV\s0 corresponding to the main part of the Perlprogram..Sh "Functions for Examining the Symbol Table".IX Subsection "Functions for Examining the Symbol Table".IP "walksymtable(\s-1SYMREF\s0, \s-1METHOD\s0, \s-1RECURSE\s0, \s-1PREFIX\s0)" 4.IX Item "walksymtable(SYMREF, METHOD, RECURSE, PREFIX)"Walk the symbol table starting at \s-1SYMREF\s0 and call \s-1METHOD\s0 on eachsymbol (a B::GV object) visited.  When the walk reaches packagesymbols (such as \*(L"Foo::\*(R") it invokes \s-1RECURSE\s0, passing in the symbolname, and only recurses into the package if that sub returns true..Sp\&\s-1PREFIX\s0 is the name of the \s-1SYMREF\s0 you're walking..SpFor example:.Sp.Vb 4\&  # Walk CGI\*(Aqs symbol table calling print_subs on each symbol.\&  # Recurse only into CGI::Util::\&  walksymtable(\e%CGI::, \*(Aqprint_subs\*(Aq, sub { $_[0] eq \*(AqCGI::Util::\*(Aq },\&               \*(AqCGI::\*(Aq);.Ve.Sp\&\fIprint_subs()\fR is a B::GV method you have declared. Also see \*(L"B::GVMethods\*(R", below..ie n .Sh "Functions Returning ""B::OP"" objects or for walking op trees".el .Sh "Functions Returning \f(CWB::OP\fP objects or for walking op trees".IX Subsection "Functions Returning B::OP objects or for walking op trees"For descriptions of the class hierarchy of these objects and themethods that can be called on them, see below, \*(L"\s-1OVERVIEW\s0 \s-1OF\s0\&\s-1CLASSES\s0\*(R" and \*(L"OP-RELATED \s-1CLASSES\s0\*(R"..IP "main_root" 4.IX Item "main_root"Returns the root op (i.e. an object in the appropriate B::OP\-derivedclass) of the main part of the Perl program..IP "main_start" 4.IX Item "main_start"Returns the starting op of the main part of the Perl program..IP "walkoptree(\s-1OP\s0, \s-1METHOD\s0)" 4.IX Item "walkoptree(OP, METHOD)"Does a tree-walk of the syntax tree based at \s-1OP\s0 and calls \s-1METHOD\s0 oneach op it visits. Each node is visited before its children. If\&\f(CW\*(C`walkoptree_debug\*(C'\fR (see below) has been called to turn debugging on thenthe method \f(CW\*(C`walkoptree_debug\*(C'\fR is called on each op before \s-1METHOD\s0 iscalled..IP "walkoptree_debug(\s-1DEBUG\s0)" 4.IX Item "walkoptree_debug(DEBUG)"Returns the current debugging flag for \f(CW\*(C`walkoptree\*(C'\fR. If the optional\&\s-1DEBUG\s0 argument is non-zero, it sets the debugging flag to that. Seethe description of \f(CW\*(C`walkoptree\*(C'\fR above for what the debugging flagdoes..Sh "Miscellaneous Utility Functions".IX Subsection "Miscellaneous Utility Functions".IP "ppname(\s-1OPNUM\s0)" 4.IX Item "ppname(OPNUM)"Return the \s-1PP\s0 function name (e.g. \*(L"pp_add\*(R") of op number \s-1OPNUM\s0..IP "hash(\s-1STR\s0)" 4.IX Item "hash(STR)"Returns a string in the form \*(L"0x...\*(R" representing the value of theinternal hash function used by perl on string \s-1STR\s0..IP "cast_I32(I)" 4.IX Item "cast_I32(I)"Casts I to the internal I32 type used by that perl..IP "minus_c" 4.IX Item "minus_c"Does the equivalent of the \f(CW\*(C`\-c\*(C'\fR command-line option. Obviously, thisis only useful in a \s-1BEGIN\s0 block or else the flag is set too late..IP "cstring(\s-1STR\s0)" 4.IX Item "cstring(STR)"Returns a double-quote-surrounded escaped version of \s-1STR\s0 which canbe used as a string in C source code..IP "perlstring(\s-1STR\s0)" 4.IX Item "perlstring(STR)"Returns a double-quote-surrounded escaped version of \s-1STR\s0 which canbe used as a string in Perl source code..IP "class(\s-1OBJ\s0)" 4.IX Item "class(OBJ)"Returns the class of an object without the part of the classnamepreceding the first \f(CW"::"\fR. This is used to turn \f(CW"B::UNOP"\fR into\&\f(CW"UNOP"\fR for example..IP "threadsv_names" 4.IX Item "threadsv_names"In a perl compiled for threads, this returns a list of the specialper-thread threadsv variables..Sh "Exported utility variabiles".IX Subsection "Exported utility variabiles".ie n .IP "@optype" 4.el .IP "\f(CW@optype\fR" 4.IX Item "@optype".Vb 1\&  my $op_type = $optype[$op_type_num];.Ve.SpA simple mapping of the op type number to its type (like '\s-1COP\s0' or '\s-1BINOP\s0')..ie n .IP "@specialsv_name" 4.el .IP "\f(CW@specialsv_name\fR" 4.IX Item "@specialsv_name".Vb 1\&  my $sv_name = $specialsv_name[$sv_index];.Ve.SpCertain \s-1SV\s0 types are considered 'special'.  They're represented byB::SPECIAL and are referred to by a number from the specialsv_list.This array maps that number back to the name of the \s-1SV\s0 (like 'Nullsv'or '&PL_sv_undef')..SH "OVERVIEW OF CLASSES".IX Header "OVERVIEW OF CLASSES"The C structures used by Perl's internals to hold \s-1SV\s0 and \s-1OP\s0information (\s-1PVIV\s0, \s-1AV\s0, \s-1HV\s0, ..., \s-1OP\s0, \s-1SVOP\s0, \s-1UNOP\s0, ...) are modelled on aclass hierarchy and the \f(CW\*(C`B\*(C'\fR module gives access to them via a trueobject hierarchy. Structure fields which point to other objects(whether types of \s-1SV\s0 or types of \s-1OP\s0) are represented by the \f(CW\*(C`B\*(C'\fRmodule as Perl objects of the appropriate class..PPThe bulk of the \f(CW\*(C`B\*(C'\fR module is the methods for accessing fields ofthese structures..PPNote that all access is read-only.  You cannot modify the internals byusing this module. Also, note that the B::OP and B::SV objects createdby this module are only valid for as long as the underlying objectsexist; their creation doesn't increase the reference counts of theunderlying objects. Trying to access the fields of a freed object willgive incomprehensible results, or worse..Sh "SV-RELATED \s-1CLASSES\s0".IX Subsection "SV-RELATED CLASSES"B::IV, B::NV, B::RV, B::PV, B::PVIV, B::PVNV, B::PVMG, B::BM (5.9.5 andearlier), B::PVLV, B::AV, B::HV, B::CV, B::GV, B::FM, B::IO. These classescorrespond in the obvious way to the underlying C structures of similar names.The inheritance hierarchy mimics the underlying C \*(L"inheritance\*(R". For 5.9.5and later this is:.PP.Vb 10\&                           B::SV\&                             |\&                +\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-+\&                |            |            |            |\&              B::PV        B::IV        B::NV        B::RV\&                  \e         /           /\&                   \e       /           /\&                    B::PVIV           /\&                         \e           /\&                          \e         /\&                           \e       /\&                            B::PVNV\&                               |\&                               |\&                            B::PVMG\&                               |\&                   +\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\&                   |     |     |     |     |\&                 B::AV B::GV B::HV B::CV B::IO\&                         |           |\&                         |           |\&                      B::PVLV      B::FM.Ve.PPFor 5.9.0 and earlier, \s-1PVLV\s0 is a direct subclass of \s-1PVMG\s0, and \s-1BM\s0 is stillpresent as a distinct type, so the base of this diagram is.PP.Vb 10\&                               |\&                               |\&                            B::PVMG\&                               |\&            +\-\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\-\-\-\-\-+\&            |      |     |     |     |     |     |\&         B::PVLV B::BM B::AV B::GV B::HV B::CV B::IO\&                                           |\&                                           |\&                                         B::FM.Ve.PPAccess methods correspond to the underlying C macros for field access,usually with the leading \*(L"class indication\*(R" prefix removed (Sv, Av,Hv, ...). The leading prefix is only left in cases where its removalwould cause a clash in method name. For example, \f(CW\*(C`GvREFCNT\*(C'\fR staysas-is since its abbreviation would clash with the \*(L"superclass\*(R" method\&\f(CW\*(C`REFCNT\*(C'\fR (corresponding to the C function \f(CW\*(C`SvREFCNT\*(C'\fR)..Sh "B::SV Methods".IX Subsection "B::SV Methods".IP "\s-1REFCNT\s0" 4.IX Item "REFCNT".PD 0.IP "\s-1FLAGS\s0" 4.IX Item "FLAGS".IP "object_2svref" 4.IX Item "object_2svref".PDReturns a reference to the regular scalar corresponding to thisB::SV object. In other words, this method is the inverse operationto the \fIsvref_2object()\fR subroutine. This scalar and other data it pointsat should be considered read-only: modifying them is neither safe norguaranteed to have a sensible effect..Sh "B::IV Methods".IX Subsection "B::IV Methods".IP "\s-1IV\s0" 4.IX Item "IV"Returns the value of the \s-1IV\s0, \fIinterpreted asa signed integer\fR. This will be misleadingif \f(CW\*(C`FLAGS & SVf_IVisUV\*(C'\fR. Perhaps you want the\&\f(CW\*(C`int_value\*(C'\fR method instead?.IP "\s-1IVX\s0" 4.IX Item "IVX".PD 0.IP "\s-1UVX\s0" 4.IX Item "UVX".IP "int_value" 4.IX Item "int_value".PDThis method returns the value of the \s-1IV\s0 as an integer.It differs from \f(CW\*(C`IV\*(C'\fR in that it returns the correct

⌨️ 快捷键说明

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