xref: /inferno-os/module/srv.m (revision 46439007cf417cbd9ac8049bb4122c890097a0fa)
1Srv: module
2{
3	PATH:	con	"$Srv";	# some hosted, never native
4
5	#
6	# IP network database lookups
7	#
8	#	iph2a:	host name to ip addrs
9	#	ipa2h:	ip addr to host aliases
10	#	ipn2p:	service name to port
11	#
12	iph2a:	fn(host: string): list of string;
13	ipa2h:	fn(addr: string): list of string;
14	ipn2p:	fn(net, service: string): string;
15
16	init:	fn();
17};
18