[ns] get arrival packet time

2011-05-25 Thread Tami Nesher
Hi, I would like to know , how can I get the time that the first packet arrived to the tcpsink. Is there any function that do it? or something else? Thanks

Re: [ns] get arrival packet time

2011-05-25 Thread Tami Nesher
But I need to do it in the TcpSink class . do you know any suitable function in C? THANKS On Wed, May 25, 2011 at 2:49 AM, ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed teto...@yahoo.com wrote: you can show it through trace file --- On *Wed, 5/25/11, Tami Nesher vessely...@gmail.com* wrote: From: Tami

[ns] tcl : create nodes Urgent

2011-05-22 Thread Tami Nesher
, May 17, 2011 at 2:33 PM, мαłłi malli@gmail.com wrote: Tami, What I understand you question is you have an variable, based on that you need to create that much of users? Ex. set s 10 for {set i 0} {$i 10} {incr i} { set n$i [$ns node] } On 17 May 2011 15:43, Tami Nesher

Re: [ns] tcl: read parameters form file

2011-05-17 Thread Tami Nesher
* element. On 15 May 2011 13:16, Tami Nesher vessely...@gmail.com wrote: Hi, thanks ! it works. I just want to know how to save the numbers in *two *variables, instead of printing them. can you tell me how? 2011/5/9 мαłłi malli@gmail.com Nesher, here the code, please let me know

Re: [ns] tcl: read parameters form file

2011-05-17 Thread Tami Nesher
OK I found the problem. I should write: *puts* * [lindex $tcpFallowUDP 0]* Thank you. 2011/5/17 Tami Nesher vessely...@gmail.com I change the line* puts $tcpFallowUDP* to *puts* * lindex $tcpFallowUDP 0 *in order to print the first argument in the list and I got this error:* * ~/ns

[ns] tcl : create nodes

2011-05-17 Thread Tami Nesher
Hi, How can I create nodes according to a variable number? I mean : I have a variable that contains the number of nodes that I need to create. How can I do it?

Re: [ns] tcl : create nodes

2011-05-17 Thread Tami Nesher
understand you question is you have an variable, based on that you need to create that much of users? Ex. set s 10 for {set i 0} {$i 10} {incr i} { set n$i [$ns node] } On 17 May 2011 15:43, Tami Nesher vessely...@gmail.com wrote: Hi, How can I create nodes according to a variable

[ns] Fwd: tcl: read parameters form file

2011-05-15 Thread Tami Nesher
] != -1} { regexp {.+: (\d+)} $lineInfo match one set tcpFallowUDP [lappend tcpFallowUDP $one] } puts $tcpFallowUDP On 8 May 2011 14:32, Tami Nesher vessely...@gmail.com wrote: here I attached the file. I need to read the numbers in tcl. On Sun, May 8, 2011 at 1:47 AM, ÞÕÇÏ Úíäì Ýì

[ns] ffmpeg installation under Linux

2011-05-15 Thread Tami Nesher
Hi, I need to install ffmpeg on Ubuntu in order to do this: ./ffmpeg -i a01e.mp4 a01e.yuv I got the error that there is no file called ffmpeg. it is right. I don't have it. someone can send me the file? or tell me where can I find it?

Re: [ns] ffmpeg installation under Linux

2011-05-15 Thread Tami Nesher
, 2011 at 3:07 PM, Tami Nesher vessely...@gmail.com wrote: Hi, I need to install ffmpeg on Ubuntu in order to do this: ./ffmpeg -i a01e.mp4 a01e.yuv I got the error that there is no file called ffmpeg. it is right. I don't have it. someone can send me the file? or tell me where can I find

[ns] questions about tcl example.

2011-05-15 Thread Tami Nesher
Hi, I want to *add some users to the example* (the attached file), in order to simulate congestion in the network. I added one tcp and one udp users like this: set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] $ns duplex-link $n0 $n2 2Mb 10ms DropTail $ns duplex-link $n1

Re: [ns] NS2 EvalVid urgent

2011-05-08 Thread Tami Nesher
. exec etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e needs to be : exec ./etmp4 sd_a01 rd_a01 st_a01 a01.mp4 a01e Good luck On Tue, May 3, 2011 at 11:11 AM, Tami Nesher vessely...@gmail.com wrote: Thanks. from the console it returns: ~/ns-allinone-2.34/ns-2.34/v1$ ./etmp4 sd_a01 rd_a01 st_a01

[ns] tcl: read parameters form file

2011-05-08 Thread Tami Nesher
Hi, I need to read two parameters from file and save them as two variables in tcl script. the file needs look like this (for example): _: 10 _: 20 each line is one word, and I need to save the numbers. How can I do this? Thanks a lot if you have an answer.

Re: [ns] tcl: read parameters form file

2011-05-08 Thread Tami Nesher
here I attached the file. I need to read the numbers in tcl. On Sun, May 8, 2011 at 1:47 AM, ÞÕÇÏ Úíäì Ýì ßá ãßÇä mohammed teto...@yahoo.com wrote: send the file to show and try to help you --- On *Sun, 5/8/11, Tami Nesher vessely...@gmail.com* wrote: From: Tami Nesher vessely

[ns] [URGENT] someone knows ? etmp4 tcl

2011-05-08 Thread Tami Nesher
I am trying to create a video file by the command exec ./etmp4 -p -0 sd_1 rd_1 st_a01 a01.mp4 a01e in a tcl script. but, when I run it- the video files weren't created by the tcl script. When I tried to run it from the console the video files were created,but with the output aborted in the end:

Re: [ns] NS2 EvalVid urgent

2011-05-03 Thread Tami Nesher
) invoked from within finish On Sun, May 1, 2011 at 5:58 AM, fivos fivos@gmail.com wrote: yes you can run them. Check http://www.tcl.tk/man/tcl8.5/tutorial/Tcl26.html On Sun, May 1, 2011 at 11:06 AM, Tami Nesher vessely...@gmail.com wrote: Hi, I am asking about the example in the link

Re: [ns] NS2 EvalVid urgent

2011-05-03 Thread Tami Nesher
, pedro chaparro pdr...@gmail.com wrote: is etmp4 in the same folder of the tcl script?? if you run th etmp4 independently, i mean directly from console it runs without errors? bye 2011/5/3 Tami Nesher vessely...@gmail.com Hello, thanks for the answer. I tried already to write in finish

[ns] NS2 EvalVid urgent

2011-05-01 Thread Tami Nesher
Hi, I am asking about the example in the link: http://140.116.72.80/~smallko/ns2/myevalvid2.htm I want to know if I can run the commands like ./etmp4 etc in the tcl file? I need that the correct video will be the *output* of the *tcl* file. Thanks.