previousNet_Portscan::getPort() (Previous) (Next) Net_Servernext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Net_Portscan::getService()

Net_Portscan::getService() – name of the service

Synopsis

require_once 'Net/Portscan.php';

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

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

previousNet_Portscan::getPort() (Previous) (Next) Net_Servernext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.