APR::BucketAPR::Bucket is a Perl API for manipulating APR Buckets. | |
Download |
APR::Bucket Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- mod_perl development team
- Publisher web site:
- http://search.cpan.org/~pgollucci/mod_perl-2.0.3/docs/api/APR/Bucket.pod
APR::Bucket Tags
APR::Bucket Description
APR::Bucket is a Perl API for manipulating APR Buckets. APR::Bucket is a Perl API for manipulating APR Buckets.Synopsis use APR::Bucket (); my $ba = $c->bucket_alloc; $b1 = APR::Bucket->new($ba, "aaa"); $b2 = APR::Bucket::eos_create($ba); $b3 = APR::Bucket::flush_create($ba); $b2->is_eos; $b3->is_flush; $len = $b1->length; $len = $b1->read($data); $type = $b1->type; $b1->insert_after($b2); $b1->insert_before($b3); $b1->remove; $b1->destroy; $b2->delete; # remove+destroy $b4 = APR::Bucket->new($ba, "to be setaside"); $b4->setaside($pool);APR::Bucket allows you to create, manipulate and delete APR buckets.You will probably find the various insert methods confusing, the tip is to read the function right to left. The following code sample helps to visualize the operations: my $bb = APR::Brigade->new($r->pool, $ba); my $d1 = APR::Bucket->new($ba, "d1"); my $d2 = APR::Bucket->new($ba, "d2"); my $f1 = APR::Bucket::flush_create($ba); my $f2 = APR::Bucket::flush_create($ba); my $e1 = APR::Bucket::eos_create($ba); # head->tail $bb->insert_head( $d1); # head->d1->tail $d1->insert_after( $d2); # head->d1->d2->tail $d2->insert_before($f1); # head->d1->f1->d2->tail $d2->insert_after( $f2); # head->d1->f1->d2->f2->tail $bb->insert_tail( $e1); # head->d1->f1->d2->f2->e1->tailRequirements:· Perl Requirements: · Perl
APR::Bucket Related Software