NAME

UniEvent::Streamer::StreamOutput - stream output for streamer

SYNOPSIS

my $stream = UE::Tcp->new;
# connect stream
my $output = UE::Streamer::StreamOutput->new($stream);
my $streamer = UE::Streamer->new($input, $output);
$streamer->start();
$streamer->finish_callback(sub { ... });

DESCRIPTION

Writes data from UniEvent::Streamer into a stream handle.

The underlying stream can be UniEvent::Tcp, UniEvent::Pipe or UniEvent::Tty.

METHODS

new($stream)

Constructs new output stream for from the UniEvent::Stream handle.