toip.tools

interface · Browser and Node

ViaArrival

What a gateway gets for each VIA packet that names it.

@toip-tools/mesh-transportView source
TypeScriptImport
import { type ViaArrival } from "@toip-tools/mesh-transport";

Declaration

TypeScriptinterface
interface ViaArrival {
  packet: Uint8Array;
  pid: Uint8Array;
  via: Extract<Packet, { kind: "via" }>;
  hops: number;
  link: string;
}

Properties

packetrequired
Uint8Array<ArrayBufferLike>
pidrequired
Uint8Array<ArrayBufferLike>
viarequired
{ kind: "via"; gatewayHint: Uint8Array; routeBlock: Uint8Array; enc: Uint8Array; ct: Uint8Array; signature: Uint8Array; }
hopsrequired
number
linkrequired
string