Interface: tos.lib.net.UnicastNameFreeRouting

interface UnicastNameFreeRouting

Provides a single next hop on a name-free protocol.

Author:
Philip Levis
Date:
$Date: 2006/12/12 18:23:29 $

Commands
command bool hasRoute()
command am_addr_t nextHop() Get the address of the best next hop set to the destination.

Events
event void noRoute()
event void routeFound()

Commands - Details

hasRoute

command bool hasRoute()

nextHop

command am_addr_t nextHop()

Get the address of the best next hop set to the destination. If there is not best next hop, the address is the local address.

Returns:
: The next best hop, or the local address if there is no route.

Events - Details

noRoute

event void noRoute()

routeFound

event void routeFound()