[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] neighbor list in wireless scenario and broadcast to neightbor



Hi,

In node.cc, there is a neighbor list variable. I wonders if that list is
maitained based on the transmission range in a wireless scenario.

Basically, I want to get all the neighbors of one node. Then, I want my
new agent to send a packet to all the neighbors.(Basestation broadcast)

In connector.h, the "send" function is to call the "recv" function of the
target. The target is a NsObject class.
Therefore, in my new agent, I want to get all the neighbor nodes in the
form of NsObject class. Then, in the "send" function of my new agent, I can
call the "recv" function of all the neighbor nodes.

However, I am not sure how to get all the neighbor nodes in the form of
NsObject class.
Could anyone please help me?

Charles