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