If a protocol name is omitted, any protocol will be matched.
These members are populated when one of the following functions are called successfully:
These members are populated when one of the following functions are called successfully:
auto serv = new Service; writeln("About service epmap:"); if (serv.getServiceByName("epmap", "tcp")) { writefln(" Service: %s", serv.name); writefln(" Port: %d", serv.port); writefln(" Protocol: %s", serv.protocolName); foreach (string s; serv.aliases) writefln(" Alias: %s", s); } else writefln(" No service for epmap.");
Class for retrieving service information.