Service.getServiceByPort

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

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

Return Value

Type: bool

false on failure.

Meta

Suggestion Box / Bug Report