PHP Class Nmap\Host

Author: William Durand ([email protected])
显示文件 Open project: willdurand/nmap

Public Methods

Method Description
__construct ( $address, $state, array $hostnames = [], array $ports = [] )
getAddress ( ) : string
getClosedPorts ( ) : Port[]
getHostnames ( ) : Hostname[]
getOpenPorts ( ) : Port[]
getPorts ( ) : Port[]
getState ( ) : string

Method Details

__construct() public method

public __construct ( $address, $state, array $hostnames = [], array $ports = [] )
$hostnames array
$ports array

getAddress() public method

public getAddress ( ) : string
return string

getClosedPorts() public method

public getClosedPorts ( ) : Port[]
return Port[]

getHostnames() public method

public getHostnames ( ) : Hostname[]
return Hostname[]

getOpenPorts() public method

public getOpenPorts ( ) : Port[]
return Port[]

getPorts() public method

public getPorts ( ) : Port[]
return Port[]

getState() public method

public getState ( ) : string
return string