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

Re: Optic Buffer ...



> 1) I want define a particular packet into the simulation ... my idea is
> that to add a tag on the packet  but i've
>     seen the packet.cc and packet.h but i don't seen a field into a
> packet where can define a "Tag" (to
>     identify a particular packet) ... my problem is that  i must use the
> packets define in the NS-2 because i
>     must simulate tcp/ip, Udp and others protocols defined in NS-2...
> Somebody know some solution to this
>     problem ???

You can add a new field into an existing header, e.g., tcp, then
modify tcp code to process that field.

> 2) Can i use a timer to blocked a queue if the packet is a packet Tag
> ??? Like can i specify that when expire
>      the timer ... must be execute my method ???

Pls see queue.cc about queue, and timer-handler.cc about how to use
timers.

- Haobo