Code: Select all
net-service
syntax: (net-service str-service str-protocol)
Makes a lookup in the services database and returns the standard port number for this service.
Returns nil on failure.
(net-service "ftp" "tcp") --> 21
Code: Select all
(net-service "" "tcp" 21) --> ftp
syntax: (net-service str-service str-protocol port-number)
Returns nil on failure or the name of the service.