I'm trying to create a new perl Event watcher type for a C++ messaging API
that my company uses.
Embedding the perl event loop, and creating watchers that mimic the behavior
of the perl ones has been surprisingly easy. However I see, from looking at
Event::tcpsession and process.pm, that the Eve
Please feel free to copy my script to anywhere that seems useful, e.g.,
the demo directory, somewhere in the docs, etc.
Cheers,
John
On Wed, Dec 15, 1999 at 09:40:25AM -0800, [EMAIL PROTECTED] wrote:
> Bingo! That one works. Thanks. So the bottom line is: you must use
> the interval attribute and the interval method if the timer is going
> to be reused. Maybe this observation is worth a line in the pod?
Can I add your scr
On Wed, Dec 15, 1999 at 09:11:53AM -0800, [EMAIL PROTECTED] wrote:
> Not quite. It didn't work the first time, so I tried calling the at()
> method directly. Viz:
>
> $w = Event->timer(after => 1);
>
> $w->cb(sub {
> $now = Event::time();
> $next = $now + rand(20.);
> print "Now:
On Wed, Dec 15, 1999 at 09:11:53AM -0800, [EMAIL PROTECTED] wrote:
> Not quite. It didn't work the first time, so I tried calling the at()
> method directly. Viz:
>
> $w = Event->timer(after => 1);
>
> $w->cb(sub {
> $now = Event::time();
> $next = $now + rand(20.);
> print "Now: "
On Tue, Dec 14, 1999 at 09:03:51PM -0800, [EMAIL PROTECTED] wrote:
> I'm trying to solve a problem that I think should be able to use
> Event. I hope someone can point me in the right direction.
>
> The basic structure is that I have a several tasks to perform repeatedly,
> but I don't know whe
On Tue, Dec 14, 1999 at 09:03:51PM -0800, [EMAIL PROTECTED] wrote:
> I'm trying to solve a problem that I think should be able to use
> Event. I hope someone can point me in the right direction.
>
> The basic structure is that I have a several tasks to perform repeatedly,
> but I don't know when