Net::Time - time and daytime network client interface

NAME SYNOPSIS DESCRIPTION AUTHOR COPYRIGHT NAME Net::Time - time and daytime network client interface SYNOPSIS use Net::Time qw(inet_time inet_daytime); print inet_time(); # use default host from Net::Config print inet_time('localhost'); print inet_time('localhost', 'tcp'); print inet_daytime(); # use default host from Net::Config print inet_daytime('localhost'); print inet_daytime('localhost', 'tcp'); DESCRIPTION Net::Time provides subroutines that obtain the time on a remo

Net::servent - by-name interface to Perl's built-in getserv*() functions

NAME SYNOPSIS DESCRIPTION EXAMPLES NOTE AUTHOR NAME Net::servent - by-name interface to Perl's built-in getserv*() functions SYNOPSIS use Net::servent; $s = getservbyname(shift || 'ftp') || die "no service"; printf "port for %s is %s, aliases are %s\n", $s->name, $s->port, "@{$s->aliases}"; use Net::servent qw(:FIELDS); getservbyname(shift || 'ftp') || die "no service"; print "port for $s_name is $s_port, aliases are @s_aliases\n"; DESCRIPTION This module's default exports overr

Net::protoent - by-name interface to Perl's built-in getproto*() functions

NAME SYNOPSIS DESCRIPTION NOTE AUTHOR NAME Net::protoent - by-name interface to Perl's built-in getproto*() functions SYNOPSIS use Net::protoent; $p = getprotobyname(shift || 'tcp') || die "no proto"; printf "proto for %s is %d, aliases are %s\n", $p->name, $p->proto, "@{$p->aliases}"; use Net::protoent qw(:FIELDS); getprotobyname(shift || 'tcp') || die "no proto"; print "proto for $p_name is $p_proto, aliases are @p_aliases\n"; DESCRIPTION This module's default exports override

Net::POP3 - Post Office Protocol 3 Client class (RFC1939)

NAME SYNOPSIS DESCRIPTION CONSTRUCTOR METHODS NOTES SEE ALSO AUTHOR COPYRIGHT NAME Net::POP3 - Post Office Protocol 3 Client class (RFC1939) SYNOPSIS use Net::POP3; # Constructors $pop = Net::POP3->new('pop3host'); $pop = Net::POP3->new('pop3host', Timeout => 60); $pop = Net::POP3->new('pop3host', SSL => 1, Timeout => 60); if ($pop->login($username, $password) > 0) { my $msgnums = $pop->list; # hashref of msgnum => size foreach my $msgnum (keys %$msgnums) {

Net::Ping - check a remote host for reachability

NAME SYNOPSIS DESCRIPTIONFunctions NOTES INSTALL BUGS AUTHORS COPYRIGHT NAME Net::Ping - check a remote host for reachability SYNOPSIS use Net::Ping; $p = Net::Ping->new(); print "$host is alive.\n" if $p->ping($host); $p->close(); $p = Net::Ping->new("icmp"); $p->bind($my_addr); # Specify source interface of pings foreach $host (@host_array) { print "$host is "; print "NOT " unless $p->ping($host, 2); print "reachable.\n"; sleep(1); } $p->close(); $p

Net::NNTP - NNTP Client class

NAME SYNOPSIS DESCRIPTION CONSTRUCTOR METHODSExtension methods UNSUPPORTED DEFINITIONS SEE ALSO AUTHOR COPYRIGHT NAME Net::NNTP - NNTP Client class SYNOPSIS 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; DESCRIPTION Net::NNTP is a class implementing a simple NNTP client in

Net::Netrc - OO interface to users netrc file

NAME SYNOPSIS DESCRIPTION THE .netrc FILE CONSTRUCTOR METHODS AUTHOR SEE ALSO COPYRIGHT NAME Net::Netrc - OO interface to users netrc file SYNOPSIS use Net::Netrc; $mach = Net::Netrc->lookup('some.machine'); $login = $mach->login; ($login, $password, $account) = $mach->lpa; DESCRIPTION Net::Netrc is a class implementing a simple interface to the .netrc file used as by the ftp program. Net::Netrc also implements security checks just like the ftp program, these checks are, first that

Net::hostent - by-name interface to Perl's built-in gethost*() functions

NAME SYNOPSIS DESCRIPTION EXAMPLES NOTE AUTHOR NAME Net::hostent - by-name interface to Perl's built-in gethost*() functions SYNOPSIS use Net::hostent; DESCRIPTION This module's default exports override the core gethostbyname() and gethostbyaddr() functions, replacing them with versions that return "Net::hostent" objects. This object has methods that return the similarly named structure field name from the C's hostent structure from netdb.h; namely name, aliases, addrtype, length, and addr_l

Net::FTP::dataconn - FTP Client data connection class

NAME DESCRIPTION NAME Net::FTP::dataconn - FTP Client data connection class DESCRIPTION Some of the methods defined in Net::FTP return an object which will be derived from this class. The dataconn class itself is derived from the IO::Socket::INET class, so any normal IO operations can be performed. However the following methods are defined in the dataconn class and IO should be performed using these. read ( BUFFER, SIZE [, TIMEOUT ] ) Read SIZE bytes of data from the server and place it into

Net::netent - by-name interface to Perl's built-in getnet*() functions

NAME SYNOPSIS DESCRIPTION EXAMPLES NOTE AUTHOR NAME Net::netent - by-name interface to Perl's built-in getnet*() functions SYNOPSIS use Net::netent qw(:FIELDS); getnetbyname("loopback") or die "bad net"; printf "%s is %08X\n", $n_name, $n_net; use Net::netent; $n = getnetbyname("loopback") or die "bad net"; { # there's gotta be a better way, eh? @bytes = unpack("C4", pack("N", $n->net)); shift @bytes while @bytes && $bytes[0] == 0; } printf "%s is %08X [%d.%d.%d.%d]\n