Net_Nmap
[ class tree: Net_Nmap ] [ index: Net_Nmap ] [ all elements ]

Class: Net_Nmap_Host

Source Location: /Net_Nmap-1.0.5/Net/Nmap/Host.php

Class Overview


Host object


Author(s):

Copyright:

  • 2008 Luca Corbo

Methods


Inherited Variables

Inherited Methods


Class Details

[line 41]
Host object


[ Top ]


Method Detail

__construct (Constructor)   [line 85]

void __construct( )

Constructor
  • Access: public

[ Top ]

addAddress   [line 112]

void addAddress( string $type, string $value)

Add an address to the addresses container
  • Access: public

Parameters:

string   $type   —  Type of address (i.e. mac, ipv4, ipv6)
string   $value   —  Address value

[ Top ]

addHostname   [line 143]

void addHostname( string $value)

Add a hostname to the hostnames container
  • Access: public

Parameters:

string   $value   —  hostaname value

[ Top ]

addOS   [line 178]

void addOS( string $accuracy, string $name)

Add an the accuracy ant the OS name to the OS container
  • Access: public

Parameters:

string   $accuracy   —  accuracy value
string   $name   —  OS name value

[ Top ]

addService   [line 155]

void addService( object $service)

Add a service object to the services container
  • Access: public

Parameters:

object   $service   —  Service object

[ Top ]

getAddress   [line 99]

string getAddress( [string $type = 'ipv4'], [int $index = 0])

Returns the value of the discovered address By default the first ipv4 address is returned
  • Access: public

Parameters:

string   $type   —  Type of address (i.e. mac, ipv4, ipv6)
int   $index   —  The index number of the parameter to obtain

[ Top ]

getAllOS   [line 203]

array getAllOS( )

Returns the OS container the discovered OS All informations are sorted by decreasing accuracy
  • Access: public

[ Top ]

getHostname   [line 128]

string getHostname( [int $index = 0])

Returns the value of the discovered hostname By default the first hostname is returned
  • Access: public

Parameters:

int   $index   —  The index number of the parameter to obtain

[ Top ]

getOS   [line 189]

string getOS( )

Returns the name of discovered OS with the highest accuracy value or the "Too many fingerprint" message if no OS is matched.
  • Access: public

[ Top ]

getServices   [line 165]

ArrayIterator getServices( )

Returns the discovered services
  • Access: public

[ Top ]

getStatus   [line 225]

string getStatus( )

Returns the status of the Host
  • Access: public

[ Top ]

setStatus   [line 215]

void setStatus( string $status)

Set the status of the Host
  • Access: public

Parameters:

string   $status   —  Host status

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.