Unix and Linux Discussions Tagged with he i |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
2,263 |
What is on Your Mind? |
|
|
|
8 |
2,548 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,103 |
IT Security RSS |
|
|
|
1 |
2,443 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
4,977 |
OS X Support RSS |
|
|
|
0 |
3,458 |
OS X Support RSS |
|
|
|
0 |
3,163 |
OS X Support RSS |
|
|
|
0 |
1,551 |
Complex Event Processing RSS News |
|
|
|
0 |
2,413 |
OS X Support RSS |
|
|
|
0 |
1,503 |
Complex Event Processing RSS News |
|
|
|
0 |
1,787 |
IT Security RSS |
|
|
|
0 |
3,453 |
UNIX and Linux RSS News |
|
|
|
8 |
5,025 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
6,337 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,955 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,119 |
Programming |
|
|
|
1 |
4,669 |
Programming |
|
|
|
1 |
4,579 |
Shell Programming and Scripting |
|
|
|
2 |
5,181 |
Shell Programming and Scripting |
|
|
|
2 |
3,137 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
8,203 |
Programming |
|
|
|
1 |
5,010 |
Shell Programming and Scripting |
|
|
|
3 |
3,699 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
3,281 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,028 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,724 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
8,256 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,861 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,037 |
IP Networking |
|
|
|
7 |
5,113 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,736 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,458 |
Programming |
|
|
|
1 |
4,330 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,854 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,035 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,906 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,067 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,064 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
125,563 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,719 |
UNIX for Dummies Questions & Answers |
Event::generic(3pm) User Contributed Perl Documentation Event::generic(3pm)
NAME
Event::generic - generic event handling
SYNOPSIS
use Event::generic;
$source = Event::generic::Source->new;
$w = Event->generic(source => $source, ...);
$w = $source->watch(...);
$source = $w->source;
$w->source($source);
$source->event;
$source->event($data);
$data = $event->data;
DESCRIPTION
This module provides a watcher type within the "Event" framework. You must understand the architecture of the "Event" system in order to
understand this document.
This module provides a system of reified event sources and watchers watching those sources. Events are generated solely by a method on the
event source object. The events may carry arbitrary data to the event handler callbacks. This module is intended for situations where the
events of interest are best determined by Perl code.
CLASSES
Event::generic::Source
A reified event source.
Event::generic
A watcher that can watch "Event::generic::Source" event sources.
Event::Event::Dataful
A (target) event that can carry arbitrary data.
EVENT SOURCE CLASS
Constructor
Event::generic::Source->new
Creates and returns a new event source.
Methods
$source->event
$source->event(DATA)
The invocation of this method is a source event for watchers of the event source. When this method is called, each active watcher of
the event source generates a target event. The DATA, if supplied, is copied into the target event objects, from which it can be
retrieved using the "data()" method.
$source->watch(ATTR => VALUE, ...)
Generates and returns a new watcher, configured to watch this event source. The standard watcher attributes may be specified as
arguments. The watcher returned is an ordinary "Event::generic", and may be reconfigured to watch a different event source.
WATCHER CLASS
Type-specific attributes
source => $source
The event source to watch. This must be either an "Event::generic::Source" object or "undef". When set to "undef", no source is being
watched, and the watcher cannot be started.
EVENT CLASS
Type-specific methods
$event->data
Returns the data associated with the event, which may be any scalar. This is read-only, and is set by the event source.
SEE ALSO
Event
perl v5.14.2 2007-05-22 Event::generic(3pm)