Net_Portscan::getService()

Net_Portscan::getService()

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

Description

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

Parameter

  • integer $port - port to check

  • string $protocol - access protocol

Return value

string - name of service running on the port

Note

This function can be called statically.

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().

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.