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

Re: [ns] Location of TCP Clock granularity Initialisation



>
>
>I think it's done in delay_bind_dispatch which is invoked in (see tcp.cc and
>Tcl.cc )
>
>Kun-chan Lan
>�
>
>          >Since TCP now uses delay binding by default, it's the call in
>     >delay_bind_init_all() that actually ends up doing the work.
>
>     Okay, so TclObject invokes this method to initialise the variables.�
>     How do you bind a C++ variable with a different name, though?� For
>     example, compare these two:
>
>     bind("tcpTick_", tcp_tick_);
>
>     delay_bind_init_one("tcpTick_");
>
>     >From what your saying, these are doing the same thing - but to
>     which C++ variable does delay_bind_init_one(char*) bind the OTcl
>     variable to?

delay_bind_init_one just does initialization of the Tcl variable
tcpTick_.  binding bewteen C++ and Tcl happens in
TcpAgent::delay_bind_dispatch().

   -John Heidemann