AnyEvent-OWNet

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    This method identifies all devices below the given path (or '/' if the
    path is not given). An AnyEvent condvar may also be supplied that will
    be used to track begin and end of all actions carried out during the
    identification process. If no condvar is provided then one will be
    created. The condvar used is returned by this method.

    The supplied callback is called for each device with the path to each
    device as the first argument and the condvar for the operation as the
    second argument. The intention of passing the callback the condvar
    (that if not provided is created by the initial call) is to enable the
    callbacks that need to make further asynchronous calls to use begin
    calls and end calls (in the async callback) on the condvar so that the
    complete operation may be tracked. See the "SYNOPSIS" for an example.

    This method currently assumes that the owserver supports the getslash
    function and if this is not the case it will fail.

    Visit each device using devices() and call the callback with the result
    of successful get() calls for $file relative to each device found. If
    $file is an array reference each array element is treated as a relative
    file.

lib/AnyEvent/OWNet.pm  view on Meta::CPAN

This method identifies all devices below the given path (or '/' if the
path is not given).  An C<AnyEvent> condvar may also be supplied that
will be used to track C<begin> and C<end> of all actions carried out
during the identification process.  If no condvar is provided then one
will be created.  The condvar used is returned by this method.

The supplied callback is called for each device with the path to each
device as the first argument and the condvar for the operation as the
second argument.  The intention of passing the callback the condvar
(that if not provided is created by the initial call) is to enable the
callbacks that need to make further asynchronous calls to use C<begin>
calls and C<end> calls (in the async callback) on the condvar so that
the complete operation may be tracked.  See the L</SYNOPSIS> for an
example.

This method currently assumes that the C<owserver> supports the C<getslash>
function and if this is not the case it will fail.

=head2 C<device_files( $callback, $file, [ $path, [ $condvar ] ] )>

Visit each device using



( run in 0.557 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )