##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-07/01:09-0400 ##+ # # getserv.icn, display service information. # link fullimag, ximage procedure main() limiter := 0 write(ximage(getserv("echo", "udp"))) write(ximage(getserv("echo", "tcp"))) while sr := getserv() do if (limiter +:= 1) < 10 then write(fullimage(sr)) write(limiter, " services in the database") end