Syntax
lookupport(integer, [string])
Description
The lookup() function returns the service name of a given port. The ports are searched in the file /etc/services. If a port cannot be found, a null is returned. An optional protocol of “tcp” or “udp” can be given for a more specific call. If no protocol is given, tcp is assumed.
Example
include("net") println(lookupport(80, "udp")) println(lookupport(80, "tcp")) println(lookupport(80)) null http http