GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  APP::NETDISCO::ANYEVENT::NBTSTAT (3)

.ds Aq ’

NAME

App::Netdisco::AnyEvent::Nbtstat - Request NetBIOS node status with AnyEvent

CONTENTS

SYNOPSIS



    use App::Netdisco::AnyEvent::Nbtstat;;

    my $request = App::Netdisco::AnyEvent::Nbtstat->new();

    my $cv = AE::cv;

    $request->nbtstat(
        127.0.0.1,
        sub {
            my $result = shift;
            print "MAC: ", $result->{mac_address} || , " ";
            print "Status: ", $result->{status}, "\n";
            printf %3s %-18s %4s %-18s, , Name, , Type
                if ( $result->{status} eq OK );
            print "\n";
            for my $rr ( @{ $result->{names} } ) {
                printf %3s %-18s <%02s> %-18s, , $rr->{name},
                    $rr->{suffix},
                    $rr->{G};
                print "\n";
            }
            $cv->send;
        }
    );

    $cv->recv;



DESCRIPTION

App::Netdisco::AnyEvent::Nbtstat is an asynchronous AnyEvent NetBIOS node status requester.

ATTRIBUTES

App::Netdisco::AnyEvent::Nbtstat implements the following attributes.

CWinterval



    my $interval = $request->interval;
    $request->interval(1);



Interval between requests, defaults to 0.02 seconds.

CWtimeout



    my $timeout = $request->timeout;
    $request->timeout(2);



Maximum request response time, defaults to 0.5 seconds.

METHODS

App::Netdisco::AnyEvent::Nbtstat implements the following methods.

CWnbtstat



    $request->nbtstat($ip, sub {
        my $result = shift;
    });



Perform a NetBIOS node status request of $ip.

SEE ALSO

AnyEvent
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 APP::NETDISCO::ANYEVENT::NBTSTAT (3) 2014-09-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.