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

📄 net::nntp.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 "Net::NNTP 3".TH Net::NNTP 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"Net::NNTP \- NNTP Client class.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\&    use Net::NNTP;\&\&    $nntp = Net::NNTP\->new("some.host.name");\&    $nntp\->quit;.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"\&\f(CW\*(C`Net::NNTP\*(C'\fR is a class implementing a simple \s-1NNTP\s0 client in Perl as describedin \s-1RFC977\s0. \f(CW\*(C`Net::NNTP\*(C'\fR inherits its communication methods from \f(CW\*(C`Net::Cmd\*(C'\fR.SH "CONSTRUCTOR".IX Header "CONSTRUCTOR".IP "new ( [ \s-1HOST\s0 ] [, \s-1OPTIONS\s0 ])" 4.IX Item "new ( [ HOST ] [, OPTIONS ])"This is the constructor for a new Net::NNTP object. \f(CW\*(C`HOST\*(C'\fR is thename of the remote host to which a \s-1NNTP\s0 connection is required. If notgiven then it may be passed as the \f(CW\*(C`Host\*(C'\fR option described below. If no host is passedthen two environment variables are checked, first \f(CW\*(C`NNTPSERVER\*(C'\fR then\&\f(CW\*(C`NEWSHOST\*(C'\fR, then \f(CW\*(C`Net::Config\*(C'\fR is checked, and if a host is not foundthen \f(CW\*(C`news\*(C'\fR is used..Sp\&\f(CW\*(C`OPTIONS\*(C'\fR are passed in a hash like fashion, using key and value pairs.Possible options are:.Sp\&\fBHost\fR \- \s-1NNTP\s0 host to connect to. It may be a single scalar, as defined forthe \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference toan array with hosts to try in turn. The \*(L"host\*(R" method will return the valuewhich was used to connect to the host..Sp\&\fBTimeout\fR \- Maximum time, in seconds, to wait for a response from the\&\s-1NNTP\s0 server, a value of zero will cause all \s-1IO\s0 operations to block.(default: 120).Sp\&\fBDebug\fR \- Enable the printing of debugging information to \s-1STDERR\s0.Sp\&\fBReader\fR \- If the remote server is \s-1INN\s0 then initially the connectionwill be to nnrpd, by default \f(CW\*(C`Net::NNTP\*(C'\fR will issue a \f(CW\*(C`MODE READER\*(C'\fR commandso that the remote server becomes innd. If the \f(CW\*(C`Reader\*(C'\fR option is givenwith a value of zero, then this command will not be sent and theconnection will be left talking to nnrpd..SH "METHODS".IX Header "METHODS"Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fRvalue, with \fItrue\fR meaning that the operation was a success. When a methodstates that it returns a value, failure will be returned as \fIundef\fR or anempty list..IP "article ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4.IX Item "article ( [ MSGID|MSGNUM ], [FH] )"Retrieve the header, a blank line, then the body (text) of thespecified article..SpIf \f(CW\*(C`FH\*(C'\fR is specified then it is expected to be a valid filehandleand the result will be printed to it, on success a true value will bereturned. If \f(CW\*(C`FH\*(C'\fR is not specified then the return value, on success,will be a reference to an array containing the article requested, eachentry in the array will contain one line of the article..SpIf no arguments are passed then the current article in the currentlyselected newsgroup is fetched..Sp\&\f(CW\*(C`MSGNUM\*(C'\fR is a numeric id of an article in the current newsgroup, andwill change the current article pointer.  \f(CW\*(C`MSGID\*(C'\fR is the message id ofan article as shown in that article's header.  It is anticipated that theclient will obtain the \f(CW\*(C`MSGID\*(C'\fR from a list provided by the \f(CW\*(C`newnews\*(C'\fRcommand, from references contained within another article, or from themessage-id provided in the response to some other commands..SpIf there is an error then \f(CW\*(C`undef\*(C'\fR will be returned..IP "body ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4.IX Item "body ( [ MSGID|MSGNUM ], [FH] )"Like \f(CW\*(C`article\*(C'\fR but only fetches the body of the article..IP "head ( [ MSGID|MSGNUM ], [\s-1FH\s0] )" 4.IX Item "head ( [ MSGID|MSGNUM ], [FH] )"Like \f(CW\*(C`article\*(C'\fR but only fetches the headers for the article..IP "articlefh ( [ MSGID|MSGNUM ] )" 4.IX Item "articlefh ( [ MSGID|MSGNUM ] )".PD 0.IP "bodyfh ( [ MSGID|MSGNUM ] )" 4.IX Item "bodyfh ( [ MSGID|MSGNUM ] )".IP "headfh ( [ MSGID|MSGNUM ] )" 4.IX Item "headfh ( [ MSGID|MSGNUM ] )".PDThese are similar to \fIarticle()\fR, \fIbody()\fR and \fIhead()\fR, but rather thanreturning the requested data directly, they return a tied filehandlefrom which to read the article..IP "nntpstat ( [ MSGID|MSGNUM ] )" 4.IX Item "nntpstat ( [ MSGID|MSGNUM ] )"The \f(CW\*(C`nntpstat\*(C'\fR command is similar to the \f(CW\*(C`article\*(C'\fR command except that notext is returned.  When selecting by message number within a group,the \f(CW\*(C`nntpstat\*(C'\fR command serves to set the \*(L"current article pointer\*(R" withoutsending text..SpUsing the \f(CW\*(C`nntpstat\*(C'\fR command toselect by message-id is valid but of questionable value, since aselection by message-id does \fBnot\fR alter the \*(L"current article pointer\*(R"..SpReturns the message-id of the \*(L"current article\*(R"..IP "group ( [ \s-1GROUP\s0 ] )" 4.IX Item "group ( [ GROUP ] )"Set and/or get the current group. If \f(CW\*(C`GROUP\*(C'\fR is not given then informationis returned on the current group..SpIn a scalar context it returns the group name..SpIn an array context the return value is a list containing, the numberof articles in the group, the number of the first article, the numberof the last article and the group name..IP "ihave ( \s-1MSGID\s0 [, \s-1MESSAGE\s0 ])" 4.IX Item "ihave ( MSGID [, MESSAGE ])"The \f(CW\*(C`ihave\*(C'\fR command informs the server that the client has an articlewhose id is \f(CW\*(C`MSGID\*(C'\fR.  If the server desires a copy of thatarticle, and \f(CW\*(C`MESSAGE\*(C'\fR has been given the it will be sent..SpReturns \fItrue\fR if the server desires the article and \f(CW\*(C`MESSAGE\*(C'\fR wassuccessfully sent,if specified..SpIf \f(CW\*(C`MESSAGE\*(C'\fR is not specified then the message must be sent using the\&\f(CW\*(C`datasend\*(C'\fR and \f(CW\*(C`dataend\*(C'\fR methods from Net::Cmd.Sp\&\f(CW\*(C`MESSAGE\*(C'\fR can be either an array of lines or a reference to an array.

⌨️ 快捷键说明

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