don't abort when ntcp fails to bind

This commit is contained in:
Jeff Becker 2016-06-13 11:34:44 -04:00
parent 9eaa51442f
commit fa68e392c8
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
8 changed files with 129 additions and 69 deletions

View file

@ -144,7 +144,10 @@ namespace transport
void RemoveNTCPSession (std::shared_ptr<NTCPSession> session);
std::shared_ptr<NTCPSession> FindNTCPSession (const i2p::data::IdentHash& ident);
void Connect (const boost::asio::ip::address& address, int port, std::shared_ptr<NTCPSession> conn);
bool IsBoundV4() const { return m_NTCPAcceptor != nullptr; };
bool IsBoundV6() const { return m_NTCPV6Acceptor != nullptr; };
boost::asio::io_service& GetService () { return m_Service; };
void Ban (const boost::asio::ip::address& addr);