mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 20:27:49 +02:00
handle follow-on NSR messages
This commit is contained in:
parent
86ff0d86db
commit
7ce92118e4
3 changed files with 37 additions and 18 deletions
|
@ -170,6 +170,20 @@ namespace util
|
|||
|
||||
void SetThreadName (const char *name);
|
||||
|
||||
template<typename T>
|
||||
class SaveStateHelper
|
||||
{
|
||||
public:
|
||||
|
||||
SaveStateHelper (T& orig): m_Original (orig), m_Copy (orig) {};
|
||||
~SaveStateHelper () { m_Original = m_Copy; };
|
||||
|
||||
private:
|
||||
|
||||
T& m_Original;
|
||||
T m_Copy;
|
||||
};
|
||||
|
||||
namespace net
|
||||
{
|
||||
int GetMTU (const boost::asio::ip::address& localAddress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue