Interface RxTxDuplex

A logical face with duplex RX and TX packet streams.

interface RxTxDuplex {
    addEventListener?: (<K>(type: K, listener: ((ev: RxTxEventMap[K]) => any), options?: AddEventListenerOptions) => void);
    attributes?: FwFace.Attributes;
    duplex: ((iterable: AsyncIterable<FwPacket<L3Pkt>, any, any>) => AsyncIterable<FwPacket<L3Pkt>, any, any>);
    removeEventListener?: (<K>(type: K, listener: ((ev: RxTxEventMap[K]) => any), options?: EventListenerOptions) => void);
}

Hierarchy (view full)

Properties

addEventListener?: (<K>(type: K, listener: ((ev: RxTxEventMap[K]) => any), options?: AddEventListenerOptions) => void)
attributes?: FwFace.Attributes
duplex: ((iterable: AsyncIterable<FwPacket<L3Pkt>, any, any>) => AsyncIterable<FwPacket<L3Pkt>, any, any>)

Duplex RX and TX streams.

Type declaration

    • (iterable): AsyncIterable<FwPacket<L3Pkt>, any, any>
    • Parameters

      • iterable: AsyncIterable<FwPacket<L3Pkt>, any, any>

        TX packet stream sent by the logical forwarder.

      Returns AsyncIterable<FwPacket<L3Pkt>, any, any>

      RX packet stream received by the logical forwarder.

removeEventListener?: (<K>(type: K, listener: ((ev: RxTxEventMap[K]) => any), options?: EventListenerOptions) => void)