Hello everyone

I've been messing with some sourcecodes in NS2 RTP/RTCP.

I want to take control of the packet's destination, but I don't see anything
useful in the sendpkt() procedure to alter. This is the code:

void RTPAgent::sendpkt()
{
        Packet* p = allocpkt();
        lastpkttime_ = Scheduler::instance().clock();
        timestamp_ = lastpkttime_;
        makepkt(p);
        target_->recv(p, (Handler*)0);
}
/** creates the RTP packet and  fills in the packet header fields */
void RTPAgent::makepkt(Packet* p)
{
        
        hdr_rtp *rh = hdr_rtp::access(p);
        /* Fill in srcid_ and seqno */
        rh->seqno() = seqno_++;
        rh->srcid() = session_ ? session_->srcid() : 0;
        rh->timestamp()= timestamp_;
}

In the code I don't see any commands regarding adjusting the receiver(s).
The most obvious line which is target_->recv(p, (Handler*)0); also does not
transfer/contain any information regarding the receiving nodes.

 So would please clarify me on where exactly should I aim for altering?
Thanks alot!
-- 
View this message in context: 
http://www.nabble.com/Regarding-the-destination-node%28s%29-for-a-packet%3A-tp19591610p19591610.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to