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

Re: [ns] tcpapp



not $app2, it should be a class name, e.g. TcpApp instproc recv. Please read the 
manual.

>X-Authentication-Warning: cardinal0.Stanford.EDU: srihan owned process doing 
-bs
>Date: Fri, 17 Nov 2000 10:45:05 -0800 (PST)
>From: Sahil Sunil Rihan <[email protected]>
>To: [email protected]
>Subject: [ns] tcpapp
>MIME-Version: 1.0
>
>Hi,
>
>I'm trying to use tcpapp as a starting point for simulating some
>applications. When I receive a message from x I need to be able to send it
>to y and z.
>
>I thought of doing this by putting in a recv method for x in the tcl
>script and sending the message to y and z when the method is
>invoked. However, it seems that the method is never being invoked.
>
>the code looks like this:
>
>$app2 proc recv {size} {
>	puts "received"
>}
>
>where app2 is a tcpapp.
>
>app1 and app2 are connected and app1 sends a msg to app1 at a
>predetermined time. I know that the message is being sent to app2 because
>I can see it in nam.
>
>I'd appreciate it if somebody could tell me what it is that I'm doing
>wrong.
>
>Thanx,
>Sahil

Tarik