Net_Portscan::getService()

Net_Portscan::getService() -- name of the service

Referentiesamenvatting

require_once 'Net/Portscan.php';

string Net_Portscan::checkPortRange (integer $port [, string $protocol = 'tcp'])

Beschrijving

This function returns the service associated with port for the specified protocol as per '/etc/services'.

Parameter

Return waarde

string - name of service running on the port

Note

Deze functie kan statisch worden aangeroepen.

The name of the service is retrieved from the machine where Net_Portscan is executed, not from the remote host, which you possibly used in Net_Portscan::checkPort().