Dear all, in ns2-1b5 CBR_Agentdefine in cbr.h,cc. this agent has sendpkt() that it call target_->rece() same as below:
============================= void CBR_Agent::sendpkt() { if (++seqno_ < maxpkts_) { Packet* p = allocpkt(); hdr_rtp* rh = (hdr_rtp*)p->access(off_rtp_); //this function return the header of packet rh->seqno() = seqno_; target_->recv(p); } else running_ = 0; } ============================= my problem is : I dont know target_->recv(p); refers to which recv() of which agent of which file. please advice me about that. thanks for your help best regards Amin --------------------------------- Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.