APR::BucketType bucket types?

APR::BucketType bucket types?

am 01.04.2005 16:42:42 von Peter.Dintelmann

I am looking for a list of the bucket types for APR::BucketType
objects and their meanings. So far I have encountered the types
"FLUSH", "EOC" (end of connection?) and "mod_perl SV bucket".

It seems that bucket type (names) are only available as strings.
When looking for buckets of a particular type a comparison
to an integer constant would be more efficient. Can we have
some constants in APR::Const for this purpose and the bucket
type name as a dual valued scalar?

Peter

Re: APR::BucketType bucket types?

am 04.04.2005 18:47:02 von Stas Bekman

Dintelmann, Peter wrote:
> I am looking for a list of the bucket types for APR::BucketType
> objects and their meanings. So far I have encountered the types
> "FLUSH", "EOC" (end of connection?) and "mod_perl SV bucket".
>
> It seems that bucket type (names) are only available as strings.
> When looking for buckets of a particular type a comparison
> to an integer constant would be more efficient. Can we have
> some constants in APR::Const for this purpose and the bucket
> type name as a dual valued scalar?

Peter, libapr identifies buckets only by their name. How do you suggest
that we manage their numerical values? A new bucket type can be added any
moment and we won't have an ID for it. APR::Const only provides a glue for
the existing libapr's C-level constants. If you want a change of this
kind, you will have to ensure that libapr provides that ID first and mp2
will follow.

--
____________________________________________________________ ______
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com