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

Re: [ns] Problem



Hi!

I had similar Problems...
Try flushing the output-queues both in the
c++-part ("fflush()" I think) and in the
tcl-part ("flush"), because your output could hang
somewhere in the queues. Also if you aren't calling
"ns <simulation-script>" directly but rather from
inside another tcl-script, I have made the experience
that this additional step also somehow prevents a
immediate output from the c++-part of the sourcecode.

Hope this helps

Bye
Felix

Riccardo Russo wrote:
> 
> If I add some printf in the code for understanding how it works (for
> example in TTL.cc or in the method
> classify of classify-addr.cc).  I don't see anything. Make tells me that
> all was compiled but when I
> run ns I don't see the printf messages. What does it mean? I'm sure that
> I put the printf in the right place and I should see something.
> Riccardo