[Ns-bugs] [Bug 281] New: Socket::CreateSocket (node, "string") does not do what you think
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Aug 11 14:17:19 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=281
Summary: Socket::CreateSocket (node, "string") does not do what
you think
Product: ns-3
Version: pre-release
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: node module
AssignedTo: ns-bugs at isi.edu
ReportedBy: mathieu.lacage at sophia.inria.fr
the above code compiles but the type of the second arg of CreateSocket is a
TypeId, not an std::string, to a TypeId is implicitely constructed as a
temporary variable but this TypeId (char *) constructor does not do a lookup
for the requested TypeId. It, instead, attempts to create a new TypeId which,
in this case, is likely to trigger the warning:
"Trying to allocate twice the same uid:"
in ../src/core/type-id.cc:115
What are the fixes ? A simple fix might be to make CreateSocket take a
std::string instead of a TypeId. I have not verified it would work though.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list