No, I need to send different p during the same recv function. (ie I need to deque multiple packets)
On 10/9/06, Raghu-kisore Neelisetti <[EMAIL PROTECTED]> wrote: > Hi, > Iam not sure If i understood you right. You cannot send the same 'p' > over and over again (If this what u meant). The way to avoid the problem > is > target->recv(p,h) > //Now make a copy of the p that you sent before and then > target->recv(p,h) > > Iam sorry if i misunderstood you. > raghu. > > > >>> "Larry Brigman" <[EMAIL PROTECTED]> 10/09/06 1:14 PM >>> > I am working on a queuing model. There are times that I need to > send more than one packet in the recv function. > > Because of the way NS models things it looks like after a single send or > target->recv(p,h) I cannot send again without an error. > > Is there a way to write a recv function that is allowed to send more > than once? > > Also when I am rescheduling my class to deque packets, about the time I > need to > deque two or more packets NS detects that time has gone backwards! > > > I am running this on FC4 using 2.29 version of NS. > > Thanks for any help provided. > Larry > > > >
