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

Class: Net_Nmap_Host

Source Location: /Net_Nmap-0.9.9/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 91]

void __construct( )

Constructor
  • Access: public

[ Top ]

addAddress   [line 120]

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 151]

void addHostname( string $value)

Add a hostname to the hostnames container
  • Access: public

Parameters:

string   $value   —  hostaname value

[ Top ]

addOS   [line 189]

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 164]

void addService( object $service)

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

Parameters:

object   $service   —  Service object

[ Top ]

getAddress   [line 106]

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 213]

array getAllOS( )

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

[ Top ]

getHostname   [line 135]

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 200]

string getOS( )

Returns the name of discovered OS with the highest accuracy value.
  • Access: public

[ Top ]

getServices   [line 175]

ArrayIterator getServices( )

Returns the discovered services
  • Access: public

[ Top ]

getStatus   [line 237]

string getStatus( )

Returns the status of the Host
  • Access: public

[ Top ]

setStatus   [line 226]

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:19:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.