stas        2003/07/25 02:08:03

  Modified:    src/docs/2.0/user/porting compat.pod
  Log:
  sendfile is a replacement for send_fd. Thanks to Elizabeth for reminding me
  to mention that.
  
  Revision  Changes    Path
  1.13      +14 -1     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.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- compat.pod        25 Jul 2003 08:56:33 -0000      1.12
  +++ compat.pod        25 Jul 2003 09:08:03 -0000      1.13
  @@ -818,7 +818,20 @@
   
   =head2 C<$r-E<gt>send_fd>
   
  -See the next item.
  +Apache 2.0 provides a new method C<sendfile()> instead of C<send_fd>,
  +so if your code used to do:
  +
  +  open my $fh, "<$file" or die "$!";
  +  $r->send_fd($fh);
  +  close $fh;
  +
  +now all you need is:
  +
  +  $r->sendfile($fh);
  +
  +There is also a compatibility implementation in pure perl in
  +C<L<Apache::compat|docs::2.0::api::Apache::compat>>.
  +
   
   =head2 C<$r-E<gt>send_fd_length>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to