E
engineer
Dear friends,
I am reading ns2 code and trying to understand the class Phy. https://github.com/hbatmit/ns2.35/blob/master/mac/phy.cc
Following lines are extracted from the function void Phy::recv(Packet* p, Handler*). I do not understand line 134 and want to know what lines exactly are executed when the function 'recv' is called. Here uptarget is a pointerof type biconnector (base class for Phy), but where does uptarget exactly pointing to.
------------------------------------------------------------------------
Packet::free(p);
return;
} else { //line 133
uptarget_->recv(p, (Handler*) 0); //line 134
}
break;
I am reading ns2 code and trying to understand the class Phy. https://github.com/hbatmit/ns2.35/blob/master/mac/phy.cc
Following lines are extracted from the function void Phy::recv(Packet* p, Handler*). I do not understand line 134 and want to know what lines exactly are executed when the function 'recv' is called. Here uptarget is a pointerof type biconnector (base class for Phy), but where does uptarget exactly pointing to.
------------------------------------------------------------------------
Packet::free(p);
return;
} else { //line 133
uptarget_->recv(p, (Handler*) 0); //line 134
}
break;