Subject: [manet] Send a request (Geographic routing).

From: Louiza Louiza <[email-masked]>
Date: Sat, 3 Nov 2012 15:32:53 +0000 (GMT)

Hi manet mailling list members;I'm a new ns-2 user, and i need your help please.
I'm simulating a network, where nodes are equipped by gps devices.What i wont is sending a request to a node (source) that i knox his coordinates 
set xsource [$node_($NSource) set X_]set ysource [$node_($NSource) set Y_]set xid [$node_($Node_info($id)) set X_]set yid [$node_($Node_info($id)) set Y_]
if {[getdist $xsource $ysource $xid $yid] <= $radius} {# Send the request in one hop (directely)...} else {# Send the request to a node closer to the source node...}
I dont know how i send the request ???????

Thank you for helping me.

---

From: Joe Macker <[email-masked]>
Date: Sat, 3 Nov 2012 15:03:20 -0400

This mailing list is not for ns2 questions there is an ns2 mailing list for that

Sent from my iPhone

On Nov 3, 2012, at 11:32 AM, Louiza Louiza <[email-masked]> wrote:

> 
> Hi manet mailling list members;
> I'm a new ns-2 user, and i need your help please.
> 
> I'm simulating a network, where nodes are equipped by gps devices.
> What i wont is sending a request to a node (source) that i knox his coordinates 
> 
> set xsource [$node_($NSource) set X_]
> set ysource [$node_($NSource) set Y_]
> set xid [$node_($Node_info($id)) set X_]
> set yid [$node_($Node_info($id)) set Y_]
> 
> if {[getdist $xsource $ysource $xid $yid] <= $radius} {
> # Send the request in one hop (directely)
> ...
> } else {
> # Send the request to a node closer to the source node
> ...
> }
> 
> _______________________________________________
> manet mailing list
> [email-masked]
> https://www.ietf.org/mailman/listinfo/manet