And if I might follow up myself:
The uploaded file
POE-Component-Pcap-0.04.tar.gz
has entered CPAN as
file: $CPAN/authors/id/F/FL/FLETCH/POE-Component-Pcap-0.04.tar.gz
size: 6940 bytes
md5: 11c6e6babcb8ee0b6a3c247c04059dc1
This version runs under POE 0.26 and fixes a problem on
lt on top of POE::Component::Pcap
(which sits on top of Net::Pcap). It's in the eg/ directory of the
distribution.
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease askin'
I'd started playing with a POE::Component::SOAP. I don't
remember how far I'd gotten with it, but a tarball is available.
http://phydeaux.org/perl/POE-Component-SOAP-0.01.tar.gz
--
Fletch| "If you find my answers frightening, __`
Hate having to clutter up your code with big, ugly BEGIN
blocks to enable event tracing?
http://poe.perl.org/?POE_RFCs/POE_Debug
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease askin'
---
# Load new stuff from a configuration file.
@@ -476,6 +563,16 @@
next;
}
+ if( /^log_wml\s+(.+?)$/ ) {
+open( $wml_fh, ">$1" )
+ or die "Can't open wml log `$1' for writing: $!\n";
+truncate( $wml_fh, 0 );
+
+select( (s
; event that tells the session/object/whatever to stop what
it's doing and close up shop.
(Of course I probably picked up doing it this way from other
PoCo's . . . :)
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED]
>>>>> "Rocco" == Rocco Caputo <[EMAIL PROTECTED]> writes:
Rocco> On Fri, Oct 05, 2001 at 01:49:24PM -0400, Fletch wrote:
>> Untested, but here's a broadcast session implementation.
>> Without too much effort you could probably sub
already a listener
my @idx = $self->_locate_target( $target );
return unless @idx;
## Splice element in question out of listener list
$self->_listeners_splice( $idx[0], 1 );
return
}
##
## _locate_target -- return index that $target occurs at (if any)
##
sub _locate_target {
ut I'm not sure
H> how I would do this otherwise.
The post doesn't work in the child because it's in a different
process (and hence has no connection to the parent's kernel). If you
need a child process, use POE::Wheel::Run instead of forking for
yourself.
-
cator (for my app) and look
Bob> for that.
Welcome to the wonderful world of creating a wire format! :)
On a somewhat tangentally related note, has anyone looked at
BEEP (nee BXXP) and doing some sort of POE (or for that matter Perl)
support for it?
http://www.bxxp.org/beepcore/hom
s are joined together with `|' as the seperator and the
request is put() to the next helper in line.
The db_reply handler splits the result back and posts another
event with the information on to another se
de handling the DBI chunk into its own
seperate program that you can unit test independently.
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you shou
ilable helper
in a round robin fashion. The helper is just a while loop that reads
requests, parses out the relevant data (split /\|/, $req), executes a
pre-prepare'd statement, and then prints the result back to the main
process.
Not exactly what you're looking for, but it
It might be worth abstracting out some of these frameworks (or
maybe `poetterns' would be more apropos . . . :) and having examples
of `here's how to start a session that processes input lines', `here's
a daemon that starts N helpers with Wheel::Run to handle concurren
y working so I didn't need to rely on
s_client and stunnel). The RPC::XML class has everything to do
request encoding and decoding, it's just a matter of getting
transports that use PoCo::Client:HTTP and what not together.
--
Fletch| "If you find my answers frighteni
top
the server.
The other option is to use the `eg/testclient.plx' program. It will
default to connecing to `localhost:' (specify a hostname to
connect to hostname:, or host:port to specify another port).
$Id: README,v 1.2 2001/08/05 20:46:56 fletch Exp $
--
Fletch
#x27;m going to be poking (or would that be poeking :) at it
today to try and get the certificate stuff straightened out.
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease aski
>>>>> "Philip" == liste <[EMAIL PROTECTED]> writes:
[...]
Philip> Maybe POE::Driver::SSL would wimp out and open an stunnel,
Philip> then pass responsibility on to a SysRW or something.
Or start a Wheel::Run `openssl s_client ...'.
-
.
They don't. I'd piddled some at writing a POE::Driver::SSL
and POE::Wheel::SSLSocetFactory which sat on top of Net::SSLeay, but I
didn't get too far with it (I just wimp'd out and switched to
something kludgy using stunnel instead of doing the SSL myself). If
there'
7;ve done exactly the same thing for the same reason (needing
to do DBI calls so I start a couple of helpers with POE::Wheel::Run).
/me wonders if any of the `popular' database APIs provide a way to
make calls asynchronously, and if there might not be a way to get DBDs
to sit on top of those.
e that
you've got a `return' as the last line of your subs.
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules=(___)=
| U
>>>>> "Philip" == gwynp <[EMAIL PROTECTED]> writes:
Philip> On 13-Jul-2001 Fletch wrote:
>> If $freezer contains a package name then:
>>
>>
>> eval qq{require $freezer; $freezer->import()};
>>
>
PR is a bareword, the require assumes a ".pm"
extension and replaces "::" with "/" in the
filename for you, to make it easy to load standard
modules. This form of loading of modules does not
risk altering your nam
but does anyone have any experience using both POE
and Stem together?
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease askin'
d things that
people are working on that haven't made it to CPAN yet (like the
POE::Component::SOAP::Server::TCP and friends that I'm piddling with).
--
Fletch| "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] |
25 matches
Mail list logo