[ns] str2addr problem

Nino.Kubinidze Nino.Kubinidze at ul.ie
Mon Feb 9 13:38:40 PST 2004


Hello ns-users,
Does anyone know what does "str2addr" mean in the code below (from ns-2/
routing / address.cc file) ? 
 
-------------------------------------------------------------------
int Address: : command (int argc, const char* const* argv)
{  
   int i, c, temp = 0;
 
* * * 
* * *
if (argc = = 3) {
  if (strcmp (argv [1], "str2addr") = = 0) {
        tcl.resultf ("%d", str2addr (argv [2]));
        return (TCL_OK);
} 
-------------------------------------------------------------------
 
Thanks,
Nino
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gamma.isi.edu/pipermail/ns-users/attachments/20040209/afe000b8/attachment.html


More information about the Ns-users mailing list