POE::Component::Client::Traceroute 0.21
Sponsored Links
POE::Component::Client::Traceroute 0.21 Ranking & Summary
File size:
0.015 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
919
Date added:
2007-04-18
Publisher:
Andrew Hoying
POE::Component::Client::Traceroute 0.21 description
POE::Component::Client::Traceroute is a non-blocking traceroute client.
SYNOPSIS
use POE qw(Component::Client::Traceroute);
POE::Component::Client::Traceroute->spawn(
Alias => tracer, # Defaults to tracer
FirstHop => 1, # Defaults to 1
MaxTTL => 16, # Defaults to 32 hops
Timeout => 0, # Defaults to never
QueryTimeout => 3, # Defaults to 3 seconds
Queries => 3, # Defaults to 3 queries per hop
BasePort => 33434, # Defaults to 33434
PacketLen => 128, # Defaults to 68
SourceAddress => 0.0.0.0, # Defaults to 0.0.0.0
PerHopPostback => 0, # Defaults to no PerHopPostback
Device => eth0, # Defaults to undef
UseICMP => 0, # Defaults to 0
Debug => 0, # Defaults to 0
DebugSocket => 0, # Defaults to 0
);
sub some_event_handler
{
$kernel->post(
"tracer", # Post request to tracer component
"traceroute", # Ask it to traceroute to an address
"trace_response", # Post answers to trace_response
$destination, # This is the host to traceroute to
[
Queries => 5, # Override the global queries parameter
MaxTTL => 30, # Override the global MaxTTL parameter
Callback => [ $args ], # Data to send back with postback event
]
);
}
# This is the sub which is called with the responses from the
# Traceroute component.
sub trace_response
{
my ($request,$response) = @_[ARG0, ARG1];
my ($destination, $options, $callback) = @$request;
my ($hops, $data, $error) = @$response;
if ($hops)
{
print "Traceroute results for $destinationn";
foreach my $hop (@$data)
{
my $hopnumber = $hop->{hop};
my $routerip = $hop->{routerip};
my @rtts = @{$hop->{results}};
print "$hopnumbert$routeript";
foreach (@rtts)
{
if ($_ eq "*") { print "* "; }
else { printf "%0.3fms ", $_*1000; }
}
print "n";
}
}
warn "Error occurred tracing to $destination: $errorn" if ($error);
}
or
sub another_event_handler
{
$kernel->post(
"tracer", # Post request to tracer component
"traceroute", # Ask it to traceroute to an address
"trace_response", # Post answers to trace_response
$destination, # This is the host to traceroute to
[
# The trace_row event will get called after each hop
PerHopPostback => trace_row,
]
);
}
sub trace_row
{
my ($request,$response) = @_[ARG0, ARG1];
my ($destination, $options, $callback) = @$request;
my ($currenthop, $data, $error) = @$response;
# $data only contains responses for the current TTL
# The structure is the same as for trace_response above
}
POE::Component::Client::Traceroute is a non-blocking Traceroute client. It lets several other sessions traceroute through it in parallel, and it lets them continue doing other things while they wait for responses.
SYNOPSIS
use POE qw(Component::Client::Traceroute);
POE::Component::Client::Traceroute->spawn(
Alias => tracer, # Defaults to tracer
FirstHop => 1, # Defaults to 1
MaxTTL => 16, # Defaults to 32 hops
Timeout => 0, # Defaults to never
QueryTimeout => 3, # Defaults to 3 seconds
Queries => 3, # Defaults to 3 queries per hop
BasePort => 33434, # Defaults to 33434
PacketLen => 128, # Defaults to 68
SourceAddress => 0.0.0.0, # Defaults to 0.0.0.0
PerHopPostback => 0, # Defaults to no PerHopPostback
Device => eth0, # Defaults to undef
UseICMP => 0, # Defaults to 0
Debug => 0, # Defaults to 0
DebugSocket => 0, # Defaults to 0
);
sub some_event_handler
{
$kernel->post(
"tracer", # Post request to tracer component
"traceroute", # Ask it to traceroute to an address
"trace_response", # Post answers to trace_response
$destination, # This is the host to traceroute to
[
Queries => 5, # Override the global queries parameter
MaxTTL => 30, # Override the global MaxTTL parameter
Callback => [ $args ], # Data to send back with postback event
]
);
}
# This is the sub which is called with the responses from the
# Traceroute component.
sub trace_response
{
my ($request,$response) = @_[ARG0, ARG1];
my ($destination, $options, $callback) = @$request;
my ($hops, $data, $error) = @$response;
if ($hops)
{
print "Traceroute results for $destinationn";
foreach my $hop (@$data)
{
my $hopnumber = $hop->{hop};
my $routerip = $hop->{routerip};
my @rtts = @{$hop->{results}};
print "$hopnumbert$routeript";
foreach (@rtts)
{
if ($_ eq "*") { print "* "; }
else { printf "%0.3fms ", $_*1000; }
}
print "n";
}
}
warn "Error occurred tracing to $destination: $errorn" if ($error);
}
or
sub another_event_handler
{
$kernel->post(
"tracer", # Post request to tracer component
"traceroute", # Ask it to traceroute to an address
"trace_response", # Post answers to trace_response
$destination, # This is the host to traceroute to
[
# The trace_row event will get called after each hop
PerHopPostback => trace_row,
]
);
}
sub trace_row
{
my ($request,$response) = @_[ARG0, ARG1];
my ($destination, $options, $callback) = @$request;
my ($currenthop, $data, $error) = @$response;
# $data only contains responses for the current TTL
# The structure is the same as for trace_response above
}
POE::Component::Client::Traceroute is a non-blocking Traceroute client. It lets several other sessions traceroute through it in parallel, and it lets them continue doing other things while they wait for responses.
POE::Component::Client::Traceroute 0.21 Screenshot
Advertisements
POE::Component::Client::Traceroute 0.21 Keywords
POE
Traceroute 0.21
PerHopPostback
MaxTTL
defaults to
defaults
traceroute
response
trace
0
post
POE::Component::Client::Traceroute
POEComponentClientTraceroute
POE::Component::Client::Traceroute 0.21
Libraries
Programming
Bookmark POE::Component::Client::Traceroute 0.21
POE::Component::Client::Traceroute 0.21 Copyright
WareSeeker periodically updates pricing and software information of POE::Component::Client::Traceroute 0.21 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of POE::Component::Client::Traceroute 0.21 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
outlook defaults to offline
vista shut down defaults to sleep
home page defaults to google
homepage defaults to about blank
tracey ullman
response auto insurance
printer defaults to tray 1
first response
myspace defaults
visual traceroute
tracey edmonds
word defaults to welsh
response link
tracey lawrence
defaults to config
trace adkins
defaults layouts
traceroute command
Related Software
POE::Component::Client::Rcon is an implementation of the Rcon remote console protocol. Free Download
POE::Component::Client::TCPMulti is a high performance client TCP library. Free Download
POE::Component::Client::AirTunes is a Perl module with stream music to Airport Express. Free Download
POE::Component::Client::Halo is an implementation of the Halo query protocol. Free Download
POE::Component::Client::HTTP is a HTTP user-agent component. Free Download
POE::Component::Client::SMTP is a Perl module for asynchronous mail sending with POE. Free Download
POE::Component::Client::FTP is a Perl module that implements an FTP client POE Component. Free Download
POE::Component::ControlPort is a Perl module with network control port for POE applications. Free Download
Latest Software
Popular Software
Favourite Software