perl-AnyEvent-Handle-Writer-0.02-alt1.noarch.rpm


Advertisement

Description

perl-AnyEvent-Handle-Writer - Extended version of AnyEvent::Handle with additional write options

Distribution: ALT Linux Sisyphus
Repository: Autoimports noarch
Package name: perl-AnyEvent-Handle-Writer
Package version: 0.02
Package release: alt1
Package architecture: noarch
Package type: rpm
Installed size: 13.33 KB
Download size: 13.33 KB
Official Mirror: ftp.altlinux.org
use AnyEvent; use AnyEvent::Handle::Writer; my $hdl; $hdl = AnyEvent::Handle::Writer->new( fh => $fh, on_error => sub { my ($hdl, $fatal, $msg) = @_; warn "got error $msg\n"; $hdl->destroy; } ); $hdl->push_write(sub { my $h = shift; if ($have_data) { $h->unshift_write($data); return 1; # Work done } else { return 0; # Work not done, call me again } }); $hdl->push_sendfile('/path/to/file', 1024);

Alternatives

Requires

Provides

  • perl(AnyEvent/Handle/Writer.pm) = 0.020
  • perl-AnyEvent-Handle-Writer = 0.02-alt1

    Install Howto

    1. Add the following line to /etc/apt/sources.list:
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
      
    2. Update the package index:
      # sudo apt-get update
    3. Install perl-AnyEvent-Handle-Writer rpm package:
      # sudo apt-get install perl-AnyEvent-Handle-Writer

    Files

    • /usr/share/doc/perl-AnyEvent-Handle-Writer-0.02/Changes
    • /usr/share/doc/perl-AnyEvent-Handle-Writer-0.02/LICENSE
    • /usr/share/doc/perl-AnyEvent-Handle-Writer-0.02/README
    • /usr/share/perl5/AnyEvent/
    • /usr/share/perl5/AnyEvent/Handle/Writer.pm
    Advertisement
    Advertisement