[Ns-developers] trace side-effects (Was: datagram socket tx buffer back pressure)

Gustavo Carneiro gjcarneiro at gmail.com
Mon Mar 29 02:59:43 PDT 2010


On Tue, Mar 23, 2010 at 4:00 PM, Mathieu Lacage <
mathieu.lacage at sophia.inria.fr> wrote:
[...]

> c. use existing trace sources/sinks in NetDevice. This sucks because, by
> definition, traces are not supposed to have any side-effect other than
> maybe generate some logging.
>

Just a small aside from the main topic.

Not saying we should use traces here, but that statement worries me.  I
proposed in the past we should add the concept of "signal" to ns-3, to which
you argued that traces an fulfill the same role, and I did agree with you.
 Now you are saying traces cannot have side-effects.  Well, in my code I
have been using a lot trace callbacks with serious side-effects (e.g.
searching for a new AP when the wifi signal is lost).  So, make up your mind
already about the role of tracing...

Best regards,

-- 
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list