include "srv.m"
srv := load Srv Srv->PATH;
Srv: module
{
init: fn();
iph2a: fn(host: string): list of string;
ipa2h: fn(addr: string): list of string;
ipn2p: fn(protocol, service: string): string;
};
Init must be called before any other function is used.
Given a host name, iph2a returns a list of its Internet addresses (if any). Given an Internet address, ipa2h returns a list of host names (if any) that have that address. The results are only as accurate as the host system's name service.
Ipn2p returns the port number (as a string) for the given service when accessed using a particular protocol protocol (typically tcp or udp).
| SRV(2 ) | Rev: Thu Feb 15 14:43:27 GMT 2007 |