commit | db64ff1bb3e8e639423cd7615066989ebf702722 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Fri Jan 18 16:37:31 2013 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Fri Jan 18 16:42:08 2013 -0800 |
tree | af1437efb92454293d466de9ca85e60f7e4b608f | |
parent | b1d6b031c313ab85199f8cd76fecae96e80f3a6d [diff] [blame] |
app+utils+doc: Adding application-level trace helper to record Interest-Data delays
diff --git a/apps/ndn-app.cc b/apps/ndn-app.cc index 3f982b6..dcf164d 100644 --- a/apps/ndn-app.cc +++ b/apps/ndn-app.cc
@@ -90,7 +90,16 @@ { m_protocolHandler = handler; } - + +uint32_t +App::GetId () const +{ + if (m_face == 0) + return (uint32_t)-1; + else + return m_face->GetId (); +} + void App::OnInterest (const Ptr<const InterestHeader> &interest, Ptr<Packet> packet) {