perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod
Date Fri, 06 Jun 2003 05:52:19 GMT
stas        2003/06/05 22:52:19

  Modified:    src/docs/2.0/user/porting compat.pod
  Log:
  s/addr/ip/ as a better var name in the example
  
  Revision  Changes    Path
  1.10      +4 -4      modperl-docs/src/docs/2.0/user/porting/compat.pod
  
  Index: compat.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/porting/compat.pod,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- compat.pod	6 Jun 2003 05:51:26 -0000	1.9
  +++ compat.pod	6 Jun 2003 05:52:19 -0000	1.10
  @@ -878,16 +878,16 @@
   information, so if you had a code like:
   
     use Socket 'sockaddr_in';
  -  my ($serverport, $serveraddr) = sockaddr_in($r->connection->local_addr);
  -  my ($remoteport, $remoteaddr) = sockaddr_in($r->connection->remote_addr);
  +  my ($serverport, $serverip) = sockaddr_in($r->connection->local_addr);
  +  my ($remoteport, $remoteip) = sockaddr_in($r->connection->remote_addr);
   
   now it'll be written as:
   
     require APR::SockAddr;
     my $serverport = $c->local_addr->port_get;
  -  my $serveraddr = $c->local_addr->ip_get;
  +  my $serverip   = $c->local_addr->ip_get;
     my $remoteport = $c->remote_addr->port_get;
  -  my $remoteaddr = $c->remote_addr->ip_get;
  +  my $remoteip   = $c->remote_addr->ip_get;
   
   META: it's not simple to fix this in the compat layer, since it'll
   break the API for normal Apache 2.0 modules. Stay tuned for solutions.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message