Anuradha Sehgal wrote:
Sir I did as you said about type casting
if (flags (0 ==strcmp(flags, NEW_BURST)))
rh-flags() |= RTP_M;
p-setdata(data);
printf(Data: %s :, ((PacketData*)p-userdata())-data());
target_-recv(p);
But it gives me segmentation error when i run the tcl
hello
First of all thanks to Mr. Timo, for his help regarding sendmsg().
As I wanted to see the data that i set in the tcl file, I edited the
../tcl/ex/udpdata.tcl like
$ns at 0.1 $udp0 send 724 Hello1
$ns at 0.2 $udp1 send 100 Hello2
$ns at 0.3 $udp0 send 500 Hello3
$ns at 0.4 $udp1 send
hello
First of all thanks to Mr. Timo, for his help regarding sendmsg().
As I wanted to see the data that i set in the tcl file, I edited the
../tcl/ex/udpdata.tcl like
$ns at 0.1 $udp0 send 724 Hello1
$ns at 0.2 $udp1 send 100 Hello2
$ns at 0.3 $udp0 send 500 Hello3
$ns at 0.4 $udp1 send
hello
First of all thanks to Mr. Timo, for his help regarding sendmsg().
As I wanted to see the data that i set in the tcl file, I edited the
../tcl/ex/udpdata.tcl like
$ns at 0.1 $udp0 send 724 Hello1
$ns at 0.2 $udp1 send 100 Hello2
$ns at 0.3 $udp0 send 500 Hello3
$ns at 0.4 $udp1 send
Anuradha wrote:
First of all thanks to Mr. Timo, for his help regarding sendmsg().
It's either Timo or Mr. Reimann. I prefer the former. :)
As I wanted to see the data that i set in the tcl file, I edited the
../tcl/ex/udpdata.tcl like
$ns at 0.1 $udp0 send 724 Hello1
$ns at 0.2 $udp1
Hello Anuradha,
Anuradha Sehgal wrote:
Sorry to mail you personally.
I got your mail id from ns-users list.
Please don't address me personally, always use the mailing list. Other
people might have the same problem as you and will be glad you find any
help available through the mailing list