The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MojoX::Ping - asynchronous ping with Mojolicious.

SYNOPSIS

# Run this code as root
use MojoX::Ping;

my $ping = MojoX::Ping->new;

$ping->ping('google.com', 1, sub {
    my ($ping, $result) = @_;
    print "Result: ", $result->[0][0],
      " in ", $result->[0][1], " seconds\n";
    $ping->ioloop->stop;
})->start;

DESCRIPTION

MojoX::Ping is an asynchronous ping for Mojo.

SEE ALSO

Mojolicious, Mojo::IOLoop

SUPPORT

IRC

#ru.pm on irc.perl.org

DEVELOPMENT

Repository

http://github.com/und3f/mojox-ping

AUTHOR

Sergey Zasenko, undef@cpan.org.

COPYRIGHT AND LICENSE

Copyright (C) 2010, Sergey Zasenko

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.