:GetHostServices()
Class
Syntax
:GetHostServices(cAddress, [nProtocol] ) -> cServices
Parameters
|
|
cAddress |
Host name that information is to be returned for. |
|
|
nProtocol |
Optional: The protocol for those services that information should be returned about. The following protocols are recognized: IPPROTO_TCP - Services that use the Transmission Control Protocol (TCP) IPPROTO_UDP - Services that use the User Datagram Protocol (UDP) |
Return
Returns a list of services supported by the specified host
Description
The :GetHostServices() method returns the WKS (well known services) record for the specified hostname and protocol.
This information, if it is provided, typically specifies the names of those services supported on the host.
See Also
:GetHostByAddress(), :GetHostByName(), :GetHostName(), :GetHostAddress(), :GetHostInfo(), :GetRecord(), :GetAllRecords()