It seems to break my callback function...
error: prototype for ‘void MyModel::ByteTrace2(std::__cxx11::string, ns3::Ptr<const ns3::Packet>, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::NetDevice>, ns3::Time, ns3::Time)’ does not match any in class ‘MyModel’
MyModel::ByteTrace2 (std::string context, Ptr<const Packet> p, Ptr<NetDevice> nd1, Ptr<NetDevice> nd2, Time t1, Time t2)
^
I added the ByteTrace2 to the MyModel as MyModel::Bytrace2(...) and included the 'MyModel' class identifier to the ByteTrace2 definition like so:
void MyModel::ByteTrace2 (std::string context, Ptr<const Packet> p, Ptr<NetDevice> nd1, Ptr<NetDevice> nd2, Time t1, Time t2){...}
Under the class declaration we see:
public:
void ByteTrace2 (std::string, Ptr<const Packet>, Ptr<const NetDevice>, Ptr<const NetDevice>, Time , Time);
Under the Main function:
Main(){...
Ptr<MyModel> model = CreateObject<MyModel>();
Config::Connect ("/ChannelList/2/TxRxPointToPoint", MakeCallback (&MyModel::ByteTrace2), model);
I remember reading something about a five argument limit when it comes to callbacks?
Wayne