Ptr<InetSocketAddress> alice;
alice = CreateObject<InetSocketAddress> ("10.1.1.2", 80);
InetSocketAddress is not derived from "Object" or "ObjectBase", or "SimpleRefCount". As a consequence, you can not use CreateObject<InetSocketAddress> or Ptr<InetSocketAddress> alice.
Just use plain, old pointers. Or just use normal member variables.
Cheers,
T.
--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/g4kgUdXmVUg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.