pamoja for TypeScript - v0.1.17
    Preparing search index...

    Variable ForwardActionConst

    ForwardAction: {
        Deliver: ForwardAction;
        Flood: ForwardAction;
        Relay: ForwardAction;
    } = ...

    What to do with a packet bound for a given node.

    Provided as a runtime object plus a matching string-union type so it works as both a value (ForwardAction.Relay) and a type annotation.

    Type Declaration

    • ReadonlyDeliver: ForwardAction

      The packet is for this node; hand it to the application.

    • ReadonlyFlood: ForwardAction

      No route is known; fall back to flooding the packet.

    • ReadonlyRelay: ForwardAction

      A route is known; unicast the packet to the next hop reported alongside.