Table of Contents

Struct Route

Namespace
Pamoja.Routing
Assembly
Pamoja.Routing.dll

A learned way to reach one node.

public readonly record struct Route : IEquatable<Route>
Implements
Inherited Members

Constructors

Route(uint, uint, ushort)

A learned way to reach one node.

public Route(uint Dst, uint NextHop, ushort Cost)

Parameters

Dst uint

The node this route reaches.

NextHop uint

The neighbour to send a packet to on the way there.

Cost ushort

What the route costs, usually in hops.

Properties

Cost

What the route costs, usually in hops.

public ushort Cost { get; init; }

Property Value

ushort

Dst

The node this route reaches.

public uint Dst { get; init; }

Property Value

uint

NextHop

The neighbour to send a packet to on the way there.

public uint NextHop { get; init; }

Property Value

uint