I, for one, found it humorous. But then, I instantly assume everyone is
trolling. Too much fark, I suppose.
I bet his approach got a lot more attention than a simple "Hey... check
out Moose. It's like POE, only cleaner." Warranted or not, it seems to
have been effective.
Rob
Rocco Cap
skend...@fhcrc.org wrote:
or perhaps somewhere in between: perhaps there is an OS buffer which
holds the ICMP Echo Reply frames and unless POE pulls them out of the
buffer fast enough, the buffer will overflow and POE won't see those
responses
This is almost certainly the issue.
i notice
It's not clear what you're trying to do, but I suspect that you're doing
it wrong. :(
Is there a reason why you don't use POE::Wheel::Run to tail the files?
There's also:
http://search.cpan.org/~rcaputo/POE-1.003/lib/POE/Wheel/FollowTail.pm
I suspect that your forked tail process may have ev
Matt Cashner wrote:
Second, in your magic POE wrapping api, you can use POE::API::Peek to
determine the state of the kernel. I've got a is_running() method in
there that you can either use via my module or rip out and use with
credit. Yay for the bsd license :) Using the module would help me kn
I've got a piece of code taken from the cookbook...
POE::Component::IKC::Server->spawn(
port => $listen_port,
name => 'WorkerBee'
);
I need to die if it fails to set up a server connection because the
address is in use. The only way I can see to do this is by subclassing
and rew
http://conferences.oreillynet.com/cs/os2004/view/e_sess/5179
Rocco,
Did you give that and is it available?
Robert
POE
would be nice.
Robert
(Randal L. Schwartz) wrote:
"Robert" == Robert Hicks <[EMAIL PROTECTED]> writes:
Robert> No really... : )
OK, convince someone here to work at minimum wage for a year instead of
(or in addition to) whatever job they have. :)
Book writing is *not* profitable. Milking t
No really... : )
Robert
hat I could setup events to monitor the
"good" drop directory and then process those in "parallel" (all theory
of course). It may be I can just use POE to handle the whole process
more "nicely".
Does POE have any issues running for a long length of time? We
basically have a daemon running that waits for the emails to come it.
Robert
David Davis wrote:
POE is a cooperative event system, so non of your computations would be
running at the same time. BUT, you could use POE::Wheel::Run to run
them in
a pool of forked children and get the benefit you're looking for.
That is probably what I was asking for. : )
Robert
the performance by re-implementing it
in POE so I could process several of those as "events".
Would POE be suitable for something like that?
Robert
Craig Votava wrote:
When I use POE and Tk together, I see the
process using up a constant 50% of my CPU,
even when there's nothing going on.
Am I doing something wrong, or is there a
good explanation for this? Is there any
way to reduce this?
Attached is a small test program.
truss (sun) or
Jake Peavy wrote:
Undefined subroutine &POE::Component::SimpleDBI::SubProcess::main called at
C:/Perl/site/lib/POE/Component/SimpleDBI.pm line 810.
POE::Component::SimpleDBI::SubProcess isn't loaded by SimpleDBI. It
does two different things. For win32, it calls SubProcess::main(), and
for
Matt Sickler wrote:
isnt serial comms done with readwrite on /dev/serialdevice or something?
although that is a good idea to write a Driver for serial comms.
Not exactly. A serial device is actually a little bit of hardware (the
serial port, if you will) that you have to tell how to functio
x27;[EMAIL PROTECTED]');
$smtp->data();
$smtp->datasend("To: [EMAIL PROTECTED]");
$smtp->datasend("From: [EMAIL PROTECTED]");
$smtp->datasend("Subject: WebCam Died...");
$smtp->datasend("\n\n");
$smtp->datasend("Webcam failed will retry in one minute.");
$smtp->datasend("\n\nDate: ".$todayDate."\nTime: ".$failTime."\n\n");
$smtp->dataend();
$smtp->quit;
$kernel->yield(get_pic => 60);
}
sub stop {
print "That's All\n";
}
Thanks,
Robert Boone
But similar
examples are shown in the POE Cookbook that (I assume) work.
I've tried adding inline_states and InlineStates to POE::Wheel::Run, but
I get an error when I try.
Any suggestions or thoughts would be very helpful...
Thanks,
Rob
--
Robert Landrum
Systems Programmer
I understand that there is a long-term goal to supercede POE::Wheel::Run
with a component module with the tentative title of POE::Component::Process
(http://poe.perl.org/?V1.0-TODOS) and there has been a discussion on the
mailing list previously about how the POE::Wheel::Run module could be
improve
> I deployed a rather complex script, but drove against walls when searching
> for package-housed events, instead of inlined ones. This kept me from
further using it,
> because my major goal was to use C OOP.
I had the same problem but found some good information at:
http://poe.perl.org/?POE_FAQ/
> That output indicates ErrorEvent has been triggered twice. The first
> time when the child process closes STDERR, and the second time when it
> closes STDOUT. I added some extra output to the sample code:
Based upon your earlier comments, this is as I had expected. What does
concern me howeve
> 2. I am surprised that ErrorEvent is not triggered in that case. Are
> you using POE 0.25? If there is a problem in Wheel::Run, it would
> help greatly if you could submit a test case that reproduces it.
I was running 0.24 on my system - I have updated this to 0.2501 from CVS and
the error per
> Unfortunately I cannot say. It seems that the concept overlaps remote
> persistent objects and remote method calls. Which is it more like?
I think there would be a better response for this project if these concepts
were implemented individually (or in a component nature) permitting more
flexib
I seem to be having an ErrorEvent triggered within POE::Wheel::Run upon the
end of the input from STDERR and STDOUT. eg.
sub _error {
my ( $syscall, $errno, $error, $id, $handle ) = @_[ ARG0 .. ARG4 ];
print Dumper( $syscall, $errno, $error, $id, $handle );
}
$VAR1 = 'read';
$VAR2 = '0';
Due to circumstances outside of my control, much of my development time
currently is being spent working within a perl 5.005.03 environment. In
this environment, I have found some problems with POE::Kernel and the
passing of arguments to the import method of Time::HiRes. The code in
question ...
24 matches
Mail list logo