Net_Portscan::checkPortRange() | Net_Portscan::getService() |
Net_Portscan | |
PEAR Manual | |
require_once 'Net/Portscan.php'; |
integer Net_Portscan::getPort (
string $service
, string
$protocol = 'tcp'
)
This function returns the port which corresponds to service for the specified protocol as per /etc/services.
string $service - name of the service to check
string $protocol - access protocol
integer - port number of the service
This function can be called statically.
The port number is retrieved from the machine where Net_Portscan is executed, not from the remote host, which you possibly used in Net_Portscan::checkPort().
Net_Portscan::checkPortRange() | Net_Portscan::getService() |
Net_Portscan | |
PEAR Manual | |