Service.getServiceByName

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

  1. bool getServiceByName(const(char)[] name, const(char)[] protocolName)
    class Service
    @trusted nothrow
    bool
    getServiceByName
    (
    scope const(char)[] name
    ,
    scope const(char)[] protocolName = null
    )
  2. bool getServiceByPort(ushort port, const(char)[] protocolName)

Return Value

Type: bool

false on failure.

Meta

Suggestion Box / Bug Report