1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

POEx::Role::Streaming provides a common idiom for streaming data from

one filehandle to another.  It accomplishes this by making good use of
sysread and POE::Wheel::ReadWrite.  This Role errs on the side of
doing as many blocking reads of the "input_handle" as possible up
front (until the high water mark is hit on the Wheel).  If this
default isn't suitable for the consumer, simply override
"get_data_from_input_handle".  After Streamer has exhausted the
source, and flushed the last of the output, it will clean up after
itself by closing the wheel, the handles, and sending all of them out
of scope. If an exception happens, it will clean up after itself, and
let the DIE signal propagate.

WWW: http://search.cpan.org/dist/POEx-Role-Streaming/
This commit is contained in:
Jun Kuriyama 2010-10-10 05:40:39 +00:00
parent b1def338fe
commit 565849eb48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=262737
5 changed files with 52 additions and 0 deletions

View File

@ -1983,6 +1983,7 @@
SUBDIR += p5-POE-XS-Loop-Poll
SUBDIR += p5-POE-XS-Queue-Array
SUBDIR += p5-POEx-Role-SessionInstantiation
SUBDIR += p5-POEx-Role-Streaming
SUBDIR += p5-POEx-Types
SUBDIR += p5-POSIX-strptime
SUBDIR += p5-PPerl

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: POEx::Role::Streaming
# Date created: 10 Oct 2010
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= POEx-Role-Streaming
PORTVERSION= 1.102610
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/N/NP/NPEREZ
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension for streaming from one filehandle to another
RUN_DEPENDS= \
p5-MooseX-Declare>0:${PORTSDIR}/devel/p5-MooseX-Declare \
p5-MooseX-Types>0:${PORTSDIR}/devel/p5-MooseX-Types \
p5-POE>0:${PORTSDIR}/devel/p5-POE \
p5-POEx-Role-SessionInstantiation>=0:${PORTSDIR}/devel/p5-POEx-Role-SessionInstantiation \
p5-POEx-Types>0:${PORTSDIR}/devel/p5-POEx-Types \
p5-aliased>0:${PORTSDIR}/devel/p5-aliased
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= POEx::Role::Streaming.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (POEx-Role-Streaming-1.102610.tar.gz) = c6fe1ef39d7d29159e427e87913b7dbd
SHA256 (POEx-Role-Streaming-1.102610.tar.gz) = 9317d4b0a531dc68330d5005557cd615ea86f79b468be4f85acf0b7946617f88
SIZE (POEx-Role-Streaming-1.102610.tar.gz) = 11488

View File

@ -0,0 +1,13 @@
POEx::Role::Streaming provides a common idiom for streaming data from
one filehandle to another. It accomplishes this by making good use of
sysread and POE::Wheel::ReadWrite. This Role errs on the side of
doing as many blocking reads of the "input_handle" as possible up
front (until the high water mark is hit on the Wheel). If this
default isn't suitable for the consumer, simply override
"get_data_from_input_handle". After Streamer has exhausted the
source, and flushed the last of the output, it will clean up after
itself by closing the wheel, the handles, and sending all of them out
of scope. If an exception happens, it will clean up after itself, and
let the DIE signal propagate.
WWW: http://search.cpan.org/dist/POEx-Role-Streaming/

View File

@ -0,0 +1,4 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/POEx/Role/Streaming/.packlist
%%SITE_PERL%%/POEx/Role/Streaming.pm
@comment @dirrmtry %%SITE_PERL%%/POEx/Role
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/POEx/Role/Streaming