config root man

Current Path : /usr/opt/perl530/man/man3/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/opt/perl530/man/man3/Net::NNTP.3

.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.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" ''
.    ds C`
.    ds C'
'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 >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\"
.\" 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 "2019-10-24" "perl v5.30.2" "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;
\&
\&    # start with SSL, e.g. nntps
\&    $nntp = Net::NNTP\->new("some.host.name", SSL => 1);
\&
\&    # start with plain and upgrade to SSL
\&    $nntp = Net::NNTP\->new("some.host.name");
\&    $nntp\->starttls;
.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 described
in \s-1RFC977\s0 and \s-1RFC4642.\s0
With IO::Socket::SSL installed it also provides support for implicit and
explicit \s-1TLS\s0 encryption, i.e. \s-1NNTPS\s0 or \s-1NNTP+STARTTLS.\s0
.PP
The Net::NNTP class is a subclass of Net::Cmd and (depending on avaibility) of
IO::Socket::IP, IO::Socket::INET6 or IO::Socket::INET.
.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 the
name of the remote host to which a \s-1NNTP\s0 connection is required. If not
given then it may be passed as the \f(CW\*(C`Host\*(C'\fR option described below. If no host is passed
then 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 found
then \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 for
the \f(CW\*(C`PeerAddr\*(C'\fR option in IO::Socket::INET, or a reference to
an array with hosts to try in turn. The \*(L"host\*(R" method will return the value
which was used to connect to the host.
.Sp
\&\fBPort\fR \- port to connect to.
Default \- 119 for plain \s-1NNTP\s0 and 563 for immediate \s-1SSL\s0 (nntps).
.Sp
\&\fB\s-1SSL\s0\fR \- If the connection should be done from start with \s-1SSL,\s0 contrary to later
upgrade with \f(CW\*(C`starttls\*(C'\fR.
You can use \s-1SSL\s0 arguments as documented in IO::Socket::SSL, but it will
usually use the right arguments already.
.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 connection
will be to innd, by default \f(CW\*(C`Net::NNTP\*(C'\fR will issue a \f(CW\*(C`MODE READER\*(C'\fR command
so that the remote server becomes nnrpd. If the \f(CW\*(C`Reader\*(C'\fR option is given
with a value of zero, then this command will not be sent and the
connection will be left talking to innd.
.Sp
\&\fBLocalAddr\fR and \fBLocalPort\fR \- These parameters are passed directly
to IO::Socket to allow binding the socket to a specific local address and port.
.Sp
\&\fBDomain\fR \- This parameter is passed directly to IO::Socket and makes it
possible to enforce IPv4 connections even if IO::Socket::IP is used as super
class. Alternatively \fBFamily\fR can be used.
.SH "METHODS"
.IX Header "METHODS"
Unless otherwise stated all methods return either a \fItrue\fR or \fIfalse\fR
value, with \fItrue\fR meaning that the operation was a success. When a method
states that it returns a value, failure will be returned as \fIundef\fR or an
empty list.
.PP
\&\f(CW\*(C`Net::NNTP\*(C'\fR inherits from \f(CW\*(C`Net::Cmd\*(C'\fR so methods defined in \f(CW\*(C`Net::Cmd\*(C'\fR may
be used to send commands to the remote \s-1NNTP\s0 server in addition to the methods
documented here.
.IP "host ()" 4
.IX Item "host ()"
Returns the value used by the constructor, and passed to IO::Socket::INET,
to connect to the host.
.IP "starttls ()" 4
.IX Item "starttls ()"
Upgrade existing plain connection to \s-1SSL.\s0
Any arguments necessary for \s-1SSL\s0 must be given in \f(CW\*(C`new\*(C'\fR already.
.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 the
specified article.
.Sp
If \f(CW\*(C`FH\*(C'\fR is specified then it is expected to be a valid filehandle
and the result will be printed to it, on success a true value will be
returned. 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, each
entry in the array will contain one line of the article.
.Sp
If no arguments are passed then the current article in the currently
selected newsgroup is fetched.
.Sp
\&\f(CW\*(C`MSGNUM\*(C'\fR is a numeric id of an article in the current newsgroup, and
will change the current article pointer.  \f(CW\*(C`MSGID\*(C'\fR is the message id of
an article as shown in that article's header.  It is anticipated that the
client will obtain the \f(CW\*(C`MSGID\*(C'\fR from a list provided by the \f(CW\*(C`newnews\*(C'\fR
command, from references contained within another article, or from the
message-id provided in the response to some other commands.
.Sp
If 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 ] )"
.PD
These are similar to \fBarticle()\fR, \fBbody()\fR and \fBhead()\fR, but rather than
returning the requested data directly, they return a tied filehandle
from 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 no
text 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" without
sending text.
.Sp
Using the \f(CW\*(C`nntpstat\*(C'\fR command to
select by message-id is valid but of questionable value, since a
selection by message-id does \fBnot\fR alter the \*(L"current article pointer\*(R".
.Sp
Returns 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 information
is returned on the current group.
.Sp
In a scalar context it returns the group name.
.Sp
In an array context the return value is a list containing, the number
of articles in the group, the number of the first article, the number
of the last article and the group name.
.IP "help ( )" 4
.IX Item "help ( )"
Request help text (a short summary of commands that are understood by this
implementation) from the server. Returns the text or undef upon failure.
.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 article
whose id is \f(CW\*(C`MSGID\*(C'\fR.  If the server desires a copy of that
article and \f(CW\*(C`MESSAGE\*(C'\fR has been given then it will be sent.
.Sp
Returns \fItrue\fR if the server desires the article and \f(CW\*(C`MESSAGE\*(C'\fR was
successfully sent, if specified.
.Sp
If \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
and must be encoded by the caller to octets of whatever encoding is required,
e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function.
.IP "last ()" 4
.IX Item "last ()"
Set the \*(L"current article pointer\*(R" to the previous article in the current
newsgroup.
.Sp
Returns the message-id of the article.
.IP "date ()" 4
.IX Item "date ()"
Returns the date on the remote server. This date will be in a \s-1UNIX\s0 time
format (seconds since 1970)
.IP "postok ()" 4
.IX Item "postok ()"
\&\f(CW\*(C`postok\*(C'\fR will return \fItrue\fR if the servers initial response indicated
that it will allow posting.
.IP "authinfo ( \s-1USER, PASS\s0 )" 4
.IX Item "authinfo ( USER, PASS )"
Authenticates to the server (using the original \s-1AUTHINFO USER / AUTHINFO PASS\s0
form, defined in \s-1RFC2980\s0) using the supplied username and password.  Please
note that the password is sent in clear text to the server.  This command
should not be used with valuable passwords unless the connection to the server
is somehow protected.
.IP "authinfo_simple ( \s-1USER, PASS\s0 )" 4
.IX Item "authinfo_simple ( USER, PASS )"
Authenticates to the server (using the proposed \s-1NNTP V2 AUTHINFO SIMPLE\s0 form,
defined and deprecated in \s-1RFC2980\s0) using the supplied username and password.
As with \*(L"authinfo\*(R" the password is sent in clear text.
.IP "list ()" 4
.IX Item "list ()"
Obtain information about all the active newsgroups. The results is a reference
to a hash where the key is a group name and each value is a reference to an
array. The elements in this array are:\- the last article number in the group,
the first article number in the group and any information flags about the group.
.IP "newgroups ( \s-1SINCE\s0 [, \s-1DISTRIBUTIONS\s0 ])" 4
.IX Item "newgroups ( SINCE [, DISTRIBUTIONS ])"
\&\f(CW\*(C`SINCE\*(C'\fR is a time value and \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution
pattern or a reference to a list of distribution patterns.
The result is the same as \f(CW\*(C`list\*(C'\fR, but the
groups return will be limited to those created after \f(CW\*(C`SINCE\*(C'\fR and, if
specified, in one of the distribution areas in \f(CW\*(C`DISTRIBUTIONS\*(C'\fR.
.IP "newnews ( \s-1SINCE\s0 [, \s-1GROUPS\s0 [, \s-1DISTRIBUTIONS\s0 ]])" 4
.IX Item "newnews ( SINCE [, GROUPS [, DISTRIBUTIONS ]])"
\&\f(CW\*(C`SINCE\*(C'\fR is a time value. \f(CW\*(C`GROUPS\*(C'\fR is either a group pattern or a reference
to a list of group patterns. \f(CW\*(C`DISTRIBUTIONS\*(C'\fR is either a distribution
pattern or a reference to a list of distribution patterns.
.Sp
Returns a reference to a list which contains the message-ids of all news posted
after \f(CW\*(C`SINCE\*(C'\fR, that are in a groups which matched \f(CW\*(C`GROUPS\*(C'\fR and a
distribution which matches \f(CW\*(C`DISTRIBUTIONS\*(C'\fR.
.IP "next ()" 4
.IX Item "next ()"
Set the \*(L"current article pointer\*(R" to the next article in the current
newsgroup.
.Sp
Returns the message-id of the article.
.IP "post ( [ \s-1MESSAGE\s0 ] )" 4
.IX Item "post ( [ MESSAGE ] )"
Post a new article to the news server. If \f(CW\*(C`MESSAGE\*(C'\fR is specified and posting
is allowed then the message will be sent.
.Sp
If \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
and must be encoded by the caller to octets of whatever encoding is required,
e.g. by using the Encode module's \f(CW\*(C`encode()\*(C'\fR function.
.Sp
The message, either sent via \f(CW\*(C`datasend\*(C'\fR or as the \f(CW\*(C`MESSAGE\*(C'\fR
parameter, must be in the format as described by \s-1RFC822\s0 and must
contain From:, Newsgroups: and Subject: headers.
.IP "postfh ()" 4
.IX Item "postfh ()"
Post a new article to the news server using a tied filehandle.  If
posting is allowed, this method will return a tied filehandle that you
can \fBprint()\fR the contents of the article to be posted.  You must
explicitly \fBclose()\fR the filehandle when you are finished posting the
article, and the return value from the \fBclose()\fR call will indicate
whether the message was successfully posted.
.IP "slave ()" 4
.IX Item "slave ()"
Tell the remote server that I am not a user client, but probably another
news server.
.IP "quit ()" 4
.IX Item "quit ()"
Quit the remote server and close the socket connection.
.IP "can_inet6 ()" 4
.IX Item "can_inet6 ()"
Returns whether we can use IPv6.
.IP "can_ssl ()" 4
.IX Item "can_ssl ()"
Returns whether we can use \s-1SSL.\s0
.SS "Extension methods"
.IX Subsection "Extension methods"
These methods use commands that are not part of the \s-1RFC977\s0 documentation. Some
servers may not support all of them.
.IP "newsgroups ( [ \s-1PATTERN\s0 ] )" 4
.IX Item "newsgroups ( [ PATTERN ] )"
Returns a reference to a hash where the keys are all the group names which
match \f(CW\*(C`PATTERN\*(C'\fR, or all of the groups if no pattern is specified, and
each value contains the description text for the group.
.IP "distributions ()" 4
.IX Item "distributions ()"
Returns a reference to a hash where the keys are all the possible
distribution names and the values are the distribution descriptions.
.IP "distribution_patterns ()" 4
.IX Item "distribution_patterns ()"
Returns a reference to an array where each element, itself an array
reference, consists of the three fields of a line of the distrib.pats list
maintained by some \s-1NNTP\s0 servers, namely: a weight, a wildmat and a value
which the client may use to construct a Distribution header.
.IP "subscriptions ()" 4
.IX Item "subscriptions ()"
Returns a reference to a list which contains a list of groups which
are recommended for a new user to subscribe to.
.IP "overview_fmt ()" 4
.IX Item "overview_fmt ()"
Returns a reference to an array which contain the names of the fields returned
by \f(CW\*(C`xover\*(C'\fR.
.IP "active_times ()" 4
.IX Item "active_times ()"
Returns a reference to a hash where the keys are the group names and each
value is a reference to an array containing the time the groups was created
and an identifier, possibly an Email address, of the creator.
.IP "active ( [ \s-1PATTERN\s0 ] )" 4
.IX Item "active ( [ PATTERN ] )"
Similar to \f(CW\*(C`list\*(C'\fR but only active groups that match the pattern are returned.
\&\f(CW\*(C`PATTERN\*(C'\fR can be a group pattern.
.IP "xgtitle ( \s-1PATTERN\s0 )" 4
.IX Item "xgtitle ( PATTERN )"
Returns a reference to a hash where the keys are all the group names which
match \f(CW\*(C`PATTERN\*(C'\fR and each value is the description text for the group.
.IP "xhdr ( \s-1HEADER,\s0 MESSAGE-SPEC )" 4
.IX Item "xhdr ( HEADER, MESSAGE-SPEC )"
Obtain the header field \f(CW\*(C`HEADER\*(C'\fR for all the messages specified.
.Sp
The return value will be a reference
to a hash where the keys are the message numbers and each value contains
the text of the requested header for that message.
.IP "xover ( MESSAGE-SPEC )" 4
.IX Item "xover ( MESSAGE-SPEC )"
The return value will be a reference
to a hash where the keys are the message numbers and each value contains
a reference to an array which contains the overview fields for that
message.
.Sp
The names of the fields can be obtained by calling \f(CW\*(C`overview_fmt\*(C'\fR.
.IP "xpath ( MESSAGE-ID )" 4
.IX Item "xpath ( MESSAGE-ID )"
Returns the path name to the file on the server which contains the specified
message.
.IP "xpat ( \s-1HEADER, PATTERN,\s0 MESSAGE-SPEC)" 4
.IX Item "xpat ( HEADER, PATTERN, MESSAGE-SPEC)"
The result is the same as \f(CW\*(C`xhdr\*(C'\fR except the is will be restricted to
headers where the text of the header matches \f(CW\*(C`PATTERN\*(C'\fR
.IP "xrover ()" 4
.IX Item "xrover ()"
The \s-1XROVER\s0 command returns reference information for the article(s)
specified.
.Sp
Returns a reference to a \s-1HASH\s0 where the keys are the message numbers and the
values are the References: lines from the articles
.IP "listgroup ( [ \s-1GROUP\s0 ] )" 4
.IX Item "listgroup ( [ GROUP ] )"
Returns a reference to a list of all the active messages in \f(CW\*(C`GROUP\*(C'\fR, or
the current group if \f(CW\*(C`GROUP\*(C'\fR is not specified.
.IP "reader ()" 4
.IX Item "reader ()"
Tell the server that you are a reader and not another server.
.Sp
This is required by some servers. For example if you are connecting to
an \s-1INN\s0 server and you have transfer permission your connection will
be connected to the transfer daemon, not the \s-1NNTP\s0 daemon. Issuing
this command will cause the transfer daemon to hand over control
to the \s-1NNTP\s0 daemon.
.Sp
Some servers do not understand this command, but issuing it and ignoring
the response is harmless.
.SH "UNSUPPORTED"
.IX Header "UNSUPPORTED"
The following \s-1NNTP\s0 command are unsupported by the package, and there are
no plans to do so.
.PP
.Vb 4
\&    AUTHINFO GENERIC
\&    XTHREAD
\&    XSEARCH
\&    XINDEX
.Ve
.SH "DEFINITIONS"
.IX Header "DEFINITIONS"
.IP "MESSAGE-SPEC" 4
.IX Item "MESSAGE-SPEC"
\&\f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is either a single message-id, a single message number, or
a reference to a list of two message numbers.
.Sp
If \f(CW\*(C`MESSAGE\-SPEC\*(C'\fR is a reference to a list of two message numbers and the
second number in a range is less than or equal to the first then the range
represents all messages in the group after the first message number.
.Sp
\&\fB\s-1NOTE\s0\fR For compatibility reasons only with earlier versions of Net::NNTP
a message spec can be passed as a list of two numbers, this is deprecated
and a reference to the list should now be passed
.IP "\s-1PATTERN\s0" 4
.IX Item "PATTERN"
The \f(CW\*(C`NNTP\*(C'\fR protocol uses the \f(CW\*(C`WILDMAT\*(C'\fR format for patterns.
The \s-1WILDMAT\s0 format was first developed by Rich Salz based on
the format used in the \s-1UNIX\s0 \*(L"find\*(R" command to articulate
file names. It was developed to provide a uniform mechanism
for matching patterns in the same manner that the \s-1UNIX\s0 shell
matches filenames.
.Sp
Patterns are implicitly anchored at the
beginning and end of each string when testing for a match.
.Sp
There are five pattern matching operations other than a strict
one-to-one match between the pattern and the source to be
checked for a match.
.Sp
The first is an asterisk \f(CW\*(C`*\*(C'\fR to match any sequence of zero or more
characters.
.Sp
The second is a question mark \f(CW\*(C`?\*(C'\fR to match any single character. The
third specifies a specific set of characters.
.Sp
The set is specified as a list of characters, or as a range of characters
where the beginning and end of the range are separated by a minus (or dash)
character, or as any combination of lists and ranges. The dash can
also be included in the set as a character it if is the beginning
or end of the set. This set is enclosed in square brackets. The
close square bracket \f(CW\*(C`]\*(C'\fR may be used in a set if it is the first
character in the set.
.Sp
The fourth operation is the same as the
logical not of the third operation and is specified the same
way as the third with the addition of a caret character \f(CW\*(C`^\*(C'\fR at
the beginning of the test string just inside the open square
bracket.
.Sp
The final operation uses the backslash character to
invalidate the special meaning of an open square bracket \f(CW\*(C`[\*(C'\fR,
the asterisk, backslash or the question mark. Two backslashes in
sequence will result in the evaluation of the backslash as a
character with no special meaning.
.RS 4
.IP "Examples" 4
.IX Item "Examples"
.PD 0
.ie n .IP """[^]\-]""" 4
.el .IP "\f(CW[^]\-]\fR" 4
.IX Item "[^]-]"
.PD
matches any single character other than a close square
bracket or a minus sign/dash.
.ie n .IP "*bdc" 4
.el .IP "\f(CW*bdc\fR" 4
.IX Item "*bdc"
matches any string that ends with the string \*(L"bdc\*(R"
including the string \*(L"bdc\*(R" (without quotes).
.ie n .IP """[0\-9a\-zA\-Z]""" 4
.el .IP "\f(CW[0\-9a\-zA\-Z]\fR" 4
.IX Item "[0-9a-zA-Z]"
matches any single printable alphanumeric \s-1ASCII\s0 character.
.ie n .IP """a??d""" 4
.el .IP "\f(CWa??d\fR" 4
.IX Item "a??d"
matches any four character string which begins
with a and ends with d.
.RE
.RS 4
.RE
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Net::Cmd,
IO::Socket::SSL
.SH "AUTHOR"
.IX Header "AUTHOR"
Graham Barr <\fIgbarr@pobox.com\fR>.
.PP
Steve Hay <\fIshay@cpan.org\fR> is now maintaining libnet as of version
1.22_02.
.SH "COPYRIGHT"
.IX Header "COPYRIGHT"
Copyright (C) 1995\-1997 Graham Barr.  All rights reserved.
.PP
Copyright (C) 2013\-2016 Steve Hay.  All rights reserved.
.SH "LICENCE"
.IX Header "LICENCE"
This module is free software; you can redistribute it and/or modify it under the
same terms as Perl itself, i.e. under the terms of either the \s-1GNU\s0 General Public
License or the Artistic License, as specified in the \fI\s-1LICENCE\s0\fR file.

Man Man