commit | 81907f20bfac5b95f4b5c9ccdce3ba26ccdace86 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Jan 23 17:32:34 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Wed Jan 23 17:32:34 2013 -0800 |
tree | 631a2122e9e8980626e85cbff800d50298ebb084 | |
parent | 9247c520b5dad13dfb99269fd2f8ed305c1934d8 [diff] [blame] |
prints for test
diff --git a/src/content-server.cc b/src/content-server.cc index 2432885..91b6561 100644 --- a/src/content-server.cc +++ b/src/content-server.cc
@@ -64,6 +64,11 @@ void ContentServer::serve(const Name &interest) { + int size = interest.size(); + cout << ">>> Serving: " << interest.getPartialName(0, size - 2) << ", seq = " << interest.getCompAsInt(size -1) << endl; + + + ReadLock lock(m_mutex); for (PrefixIt it = m_prefixes.begin(); it != m_prefixes.end(); ++it) {