blob: c28784254a4c94ce12a89f901dfa22fbf3351f2e [file] [log] [blame]
akmhoquefa8ee9b2014-03-14 09:06:24 -05001#ifndef NLSR_WL_HPP
2#define NLSR_WL_HPP
3
4#include "nlsr_wle.hpp"
5
6namespace nlsr
7{
8 class WaitingList
9 {
10 public:
11 WaitingList()
12 : waitingTable()
13 {}
14
15 std::list<WaitingListEntry>& getWaitingTable()
16 {
17 return waitingTable;
18 }
19
20 bool addtoWaitingList(std::string respCert, std::string waitee);
21 std::pair<WaitingListEntry, bool> getWaitingListEntry(std::string respCert);
22 bool removeFromWaitingList(std::string respCert);
23
24 private:
25 std::list<WaitingListEntry> waitingTable;
26 };
27
28 std::ostream& operator<<(std::ostream& os, WaitingList wl);
29}
30
31#endif