New udata() method returns it.
-# $Id: Task.pm,v 1.1 2006-10-06 11:33:07 mike Exp $
+# $Id: Task.pm,v 1.2 2006-10-12 14:36:34 mike Exp $
package ZOOM::IRSpy::Task;
sub new {
my $class = shift();
- my($conn, %cb) = @_;
+ my($conn, $udata, %cb) = @_;
return bless {
irspy => $conn->{irspy},
conn => $conn,
cb => \%cb,
+ udata => $udata,
timeRegistered => time(),
}, $class;
}
return $this->{conn};
}
+sub udata {
+ my $this = shift();
+ return $this->{udata};
+}
+
sub run {
my $this = shift();
die "can't run base-class task $this";