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

Re: Simple Web Server, Cache and client



You should write 

proc xxx {} {
	... 
}

and that's tcl syntax? 

- Haobo

> 	proc start-connection
> 		global ns server cache client
> 
> 		$client connect $cache
> 		$cache connect $server
> 		$client start-session $cache $server
> 
> 
> 	proc finish
> 		global ns log
> 		$ns flush-trace
> 		flush $log
> 		close $log
> 		exit 0
> 
> 		$ns run
> 
> 
> However its giving me this error when I compile it using
> 
> NS2.1b5.
> 
> wrong # args: should be "proc name args body"
>     while executing
> "proc start-connection"
>     (file "Web1.tcl" line 60)
> 
> 
> If anybody knows what might be wrong, Id appreciate the help.
> 
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
>