mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	shared pointer for local RI
This commit is contained in:
		
							parent
							
								
									af2a5b93f2
								
							
						
					
					
						commit
						683c97d5c8
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -3,6 +3,7 @@
 | 
			
		|||
 | 
			
		||||
#include <inttypes.h>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <memory>
 | 
			
		||||
#include <boost/asio.hpp>
 | 
			
		||||
#include <cryptopp/dsa.h>
 | 
			
		||||
#include <cryptopp/osrng.h>
 | 
			
		||||
| 
						 | 
				
			
			@ -24,6 +25,11 @@ namespace i2p
 | 
			
		|||
			void Init ();
 | 
			
		||||
 | 
			
		||||
			i2p::data::RouterInfo& GetRouterInfo () { return m_RouterInfo; };
 | 
			
		||||
			std::shared_ptr<const i2p::data::RouterInfo> GetSharedRouterInfo () const 
 | 
			
		||||
			{ 
 | 
			
		||||
				return std::shared_ptr<const i2p::data::RouterInfo> (&m_RouterInfo, 
 | 
			
		||||
					[](const i2p::data::RouterInfo *) {});
 | 
			
		||||
			}
 | 
			
		||||
			CryptoPP::RandomNumberGenerator& GetRandomNumberGenerator () { return m_Rnd; };	
 | 
			
		||||
 | 
			
		||||
			void UpdatePort (int port); // called from Daemon
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue