allow same port at different interfaces

This commit is contained in:
orignal 2016-04-24 17:32:24 -04:00
parent 4431d50635
commit d582c30f6e
3 changed files with 9 additions and 5 deletions

View file

@ -118,6 +118,9 @@ namespace client
void Start ();
//If you override this make sure you call it from the children
void Stop ();
const boost::asio::ip::tcp::acceptor& GetAcceptor () const { return m_Acceptor; };
protected:
virtual std::shared_ptr<I2PServiceHandler> CreateHandler(std::shared_ptr<boost::asio::ip::tcp::socket> socket) = 0;
virtual const char* GetName() { return "Generic TCP/IP accepting daemon"; }