[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] group allocation and assignment question
I'd really like to be able to allocate and assign a group inside of c++,
so to do this I'm using tcl commands like tcl.evalc("Node allocaddr")
and grabbing the string. I wanted to assign that address to something
useful, but it looks like all of the addressing in ns is done with an
ns_addr_t object, built into the config.h file. How do I take my string
(Usually a negative number!? like -34399384) and make it an ns_addr_t
object? I tried declaring and binding one inside my c++ so I could bind
in tcl, but the bind command doesn't take a ns_addr_t as an arg either.
So basically, 1) are the numbers supposed to be negative, and 2) how do
I convert from a string to an ns address?
_Will