drop messages to other router coming down an inbound tunnel

This commit is contained in:
orignal 2014-07-10 12:44:49 -04:00
parent b02c777390
commit 4de9ed80af
4 changed files with 29 additions and 4 deletions

View file

@ -20,7 +20,7 @@ namespace tunnel
public:
TunnelEndpoint (): m_NumReceivedBytes (0) {};
TunnelEndpoint (bool isInbound): m_IsInbound (isInbound), m_NumReceivedBytes (0) {};
~TunnelEndpoint ();
size_t GetNumReceivedBytes () const { return m_NumReceivedBytes; };
@ -34,6 +34,7 @@ namespace tunnel
private:
std::map<uint32_t, TunnelMessageBlockEx> m_IncompleteMessages;
bool m_IsInbound;
size_t m_NumReceivedBytes;
};
}