n this bug, feel free to chime in:
https://rt.cpan.org/Ticket/Display.html?id=76125
-- -- Mike
Mike Schilli
m...@perlmeister.com
Fetching the $url should be a non-blocking action that you give it
a postback (or configured session/event to post) to notify you when
a response is ready for read
On Sun, 26 Sep 2010, Mike Schilli wrote:
Looks like POE stopped working with Gtk2 GUIs with Gtk2-1.222, POE-1.293, and
POE-Loop-Glib-0.038.
Please ignore, saving the widgets in the POE heap fixed it.
-- Mike
Mike Schilli
m...@perlmeister.com
my $window = Gtk2::Window->new ('toplevel');
my $button = Gtk2::Button->new ('Quit');
$button->signal_connect (clicked => sub { Gtk2->main_quit });
$window->add ($button);
$window->show_all;
Gtk2->main;
Anything I missed in the first snippet? Or are there any known issues with
Gtk2-1.222, POE-1.293, and POE-Loop-Glib-0.038? Any help appreciated.
-- Mike
Mike Schilli
m...@perlmeister.com
Couple of more issues resolved, this time regarding daemonization of POE
processes, see below. Thanks!
-- Mike
Mike Schilli
m...@perlmeister.com
-- Forwarded message --
From: "p...@0ne.us"
To: Mike Schilli
Subject: Re: POE::Wheel::Run and sig_child
Date: Thu, 22 A
=> "down" );
warn "starting ...";
},
down => sub {
warn "killing process";
$_[HEAP]->{wheel}->kill();
},
sig_child => sub {
warn("waitpid for " . [ARG1]);
waitpid $_[ARG1], 0;
},
});
$poe_kernel->run();
Looks like the 'sig_child' handler is never run ... suggestions?
-- Mike
Mike Schilli
m...@perlmeister.com
rd if server isn't up yet
return if ! $heap->{client_heap}->{connected};
# forward to server
$heap->{client_heap}-> {server}->put( $request );
}
Thanks!
-- Mike
Mike Schilli
m...@perlmeister.com
, I'm not ready for this callback yet, come back after
two seconds" unless the component implements this explicitly.
-- Mike
Mike Schilli
m...@perlmeister.com
http://search.cpan.org/~rcaputo/POE-1.289/lib/POE/Component/Server/TCP.pm#Concurrency
You must have missed that part or t
like that it's a
global variable that allows only single use of this component.
Is there a better way?
-- Mike
Mike Schilli
m...@perlmeister.com
? Anything
I can do from 'userland'?
-- Mike
Mike Schilli
m...@perlmeister.com
--
Rocco Caputo - rcap...@pobox.com
On Mar 9, 2010, at 03:10, p...@perlmeister.com wrote:
I'm trying to combine POE with a Gtk2 event loop, but it seems that this
trips up POE, which then stops processing a
isations. Believe it or not, they're in there for the money.
They make it by the one or two out of 100 books that are bestsellers
and sell 500,000 copies over several years.
-- Mike
Mike Schilli
[EMAIL PROTECTED]
wikis, is
that a person with a vision takes the reader by the hand and leads them
onto path where understanding basic concepts just falls in place,
anticipating questions as they come.
This requires talent. Very few people can do it properly.
-- Mike
Mike Schilli
[EMAIL PROTECTED]
On Tue, 6 Jun 2006, Justin Hawkins wrote:
> Ha!
> I spent several hours last night puzzling over exactly this
Thanks, I appreciate your help :). So obvious in hindsight, but
really hard to figure out without helpful error messages.
-- Mike
Mike Schilli
[EMAIL PROTECTED]
{
my ($heap, $input, $wheel_id) = @_[HEAP, ARG0, ARG1];
DEBUG "Child process in wheel $wheel_id wrote to STDOUT: $input";
}
}
);
-- Mike
Mike Schilli
[EMAIL PROTECTED]
() function. The plugin's POE sessions are now dancing happily
around gaim's Glib event loop.
Thanks so much!
-- Mike
Mike Schilli
[EMAIL PROTECTED]
k or have
a parameter that would enable it.
Thanks for any help.
-- Mike
P.S.:
The gaim plugin is available at
ftp://www.linux-magazin.de/pub/listings/magazin/2005/10/Perl/pmwatcher.pl
and the corresponding article (sorry, only in German) is here:
http://www.linux-magazin.de/Artikel/ausgab
15 matches
Mail list logo