Hello,
I'm implementing a routing protocol for hybrid ad hoc network where
each node can change its base station dynamically. However I'd like to
ask two questions:
1/ in config.h, we define
typedef int32_t nsaddr_t;
nsaddr_t is also address of a base station (in node.cc at
get_node_by_address we know that's id of a node). In mobilenode.h we
have
inline void set_base_stn(int addr) { base_stn_ = addr; }
So we must set the BS of a node by its address typed int. My question
is that if there is a way to convert int into nsaddr_t in NS-2, or we
must do a type-casting in C++ ? Because int and int32_t aren't always
the same.
2/ In Ros & Ruiz 's tutorial, we can dynamically change BS of a node.
Have we to change also the address of a node, as we're using hieraddr
?
Thanks in advance,
--
Hai-Nam NGUYEN
http://www.jcisio.com