BridgePacket constructor

BridgePacket(
  1. Packet _packet
)

Wrap a parsed or freshly built inner packet as a bridge packet, asserting that the bridge flag is set (B=1).

End users normally obtain bridge packets from BridgePacketFactory (instructions) or from its BridgePacketFactory.parse (received datagrams), so this constructor is rarely called directly.

Implementation

BridgePacket(super._packet) {
  assert(bid == 1, 'packet bid error:'
      ' bid=$bid, target=$target, source=$source.');
}