cvs commit: qpsmtpd/lib/Qpsmtpd Connection.pm

[email protected] (Matt Sergeant)
Newsgroups perl.cvs.qpsmtpd
Message-ID <[email protected]>
cvsuser     04/06/07 11:48:13

  Modified:    lib/Qpsmtpd Connection.pm
  Log:
  Docs
  
  Revision  Changes    Path
  1.4       +62 -0     qpsmtpd/lib/Qpsmtpd/Connection.pm
  
  Index: Connection.pm
  ===================================================================
  RCS file: /cvs/public/qpsmtpd/lib/Qpsmtpd/Connection.pm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -r1.3 -r1.4
  --- Connection.pm	10 Sep 2002 13:42:44 -0000	1.3
  +++ Connection.pm	7 Jun 2004 18:48:13 -0000	1.4
  @@ -59,3 +59,65 @@
   }
   
   1;
  +
  +__END__
  +
  +=head1 NAME
  +
  +Qpsmtpd::Connection - A single SMTP connection
  +
  +=head1 SYNOPSIS
  +
  +  my $rdns = $qp->connection->remote_host;
  +  my $ip = $qp->connection->remote_ip;
  +
  +=head1 DESCRIPTION
  +
  +This class contains details about an individual SMTP connection. A
  +connection lasts the lifetime of a TCP connection to the SMTP server.
  +
  +See also L<Qpsmtpd::Transaction> which is a class containing details
  +about an individual SMTP transaction. A transaction lasts from
  +C<MAIL FROM> to the end of the C<DATA> marker, or a C<RSET> command,
  +whichever comes first, whereas a connection lasts until the client
  +disconnects.
  +
  +=head1 API
  +
  +These API docs assume you already have a connection object. See the
  +source code if you need to construct one. You can access the connection
  +object via the C<Qpsmtpd> object's C<< $qp->connection >> method.
  +
  +=head2 remote_host( )
  +
  +The remote host connecting to the server as looked up via reverse dns.
  +
  +=head2 remote_ip( )
  +
  +The remote IP address of the connecting host.
  +
  +=head2 remote_info( )
  +
  +If your server does an ident lookup on the remote host, this is the
  +identity of the remote client.
  +
  +=head2 hello( )
  +
  +Either C<"helo"> or C<"ehlo"> depending on how the remote client
  +greeted your server.
  +
  +NOTE: This field is empty during the helo or ehlo hooks, it is only
  +set after a successful return from those hooks.
  +
  +=head2 hello_host( )
  +
  +The host name specified in the C<HELO> or C<EHLO> command.
  +
  +NOTE: This field is empty during the helo or ehlo hooks, it is only
  +set after a successful return from those hooks.
  +
  +=head2 notes($key [, $value])
  +
  +Connection-wide notes, used for passing data between plugins.
  +
  +=cut
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.