C# Класс BACnet.Core.Network.RoutingTable

Показать файл Открыть проект

Открытые методы

Метод Описание
AddLocalRoute ( ushort network, byte portId ) : Route

Adds a new local route to the routing table

AddRemoteRoute ( ushort network, byte portId, Mac nextHop ) : Route

Adds a new remote route to routing table

GetRoute ( ushort network ) : Route

Gets the route to a network

GetRouteByPortId ( byte portId ) : Route

Gets the local route to a directly attached network

RoutingTable ( ) : System

Приватные методы

Метод Описание
_findRoute ( ushort network ) : int

Finds the route to a network

_findRouteByPortId ( byte portId ) : int

Finds a route to a directly attached network by its port id

_upsertRoute ( int index, Route route ) : Route

Replaces a route in the routing table, or inserts a new one if there is no suitable route to replace

Описание методов

AddLocalRoute() публичный метод

Adds a new local route to the routing table
public AddLocalRoute ( ushort network, byte portId ) : Route
network ushort The network number of the route
portId byte The port id of the route
Результат Route

AddRemoteRoute() публичный метод

Adds a new remote route to routing table
public AddRemoteRoute ( ushort network, byte portId, Mac nextHop ) : Route
network ushort The network number of the route
portId byte The port id of the route
nextHop BACnet.Core.Datalink.Mac The next hop mac address
Результат Route

GetRoute() публичный метод

Gets the route to a network
public GetRoute ( ushort network ) : Route
network ushort The network to get the route to
Результат Route

GetRouteByPortId() публичный метод

Gets the local route to a directly attached network
public GetRouteByPortId ( byte portId ) : Route
portId byte The port id of the port
Результат Route

RoutingTable() публичный метод

public RoutingTable ( ) : System
Результат System