10 #define ROUTERINPROC_H
22 #include "PacketStore.h"
24 #include "QuManager.h"
30 using namespace std::chrono;
33 using std::unique_lock;
46 const static int numThreads = 100;
47 const static int maxReplies = 10000;
48 typedef high_resolution_clock::time_point timePoint;
92 bool pktCheck(pktx,
int);
96 void handleRteReply(pktx,
int);
97 void sendRteReply(pktx,
int);
98 void subUnsub(pktx,
int);
101 inline void RouterInProc::forward(pktx px) {
102 if (rtr->booting) bootSend(px);
103 else rtr->xferQ.enq(px);