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

Re: FullTCP code



>
> Thanks Kevin,
> Using the current ns source fixed most of my problems. However it does not
> call the tcl 'done' proc through finish() when it closes the connection.
> done() is handled differently than the 'resume' or 'recv' tcl procs in the
> tcp-full.cc code. The comments in the code mention something about
> "registering" the proc with TCP. I have a done proc defined in my tcl code.
> Is there something special I need to do to get it to be recognized by TCP ?
> 
> art mena
> USC
> 
> 

Try doing something of the following form:

	set myagent [new Agent/TCP/FullTcp]
	$myagent proc done { } {
		... code you want ...
	}

If you want all the FullTCP's to have the same code you could
also just do:

	Agent/TCP/FullTcp instproc done { } {
		... your code ...
	}

See if that helps,
- K