Service.getServiceByName

bool getServiceByName(scope const(char)[] name, scope const(char)[] protocolName = null) @trusted nothrow

If a protocol name is omitted, any protocol will be matched.

Returns

false on failure.