Exemple #1
0
 void handleRouteRequest(AodvRReq request, NetworkInterface netInt)
 {
     setRoute(request.Source, netInt);
     if (request.Destination == node)
     {
         AodvRRep          reply  = new AodvRRep(node);
         RoutingInfoBundle bundle = new RoutingInfoBundle(node, request.Source, reply);
         Route(bundle);
     }
 }
Exemple #2
0
 void handleRouteReply(AodvRRep reply, NetworkInterface netInt)
 {
     setRoute(reply.Source, netInt);
 }