1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

remove our paths from outbound queues

This commit is contained in:
Thomas Winget 2019-11-07 13:23:14 -05:00
parent ef1a5652ef
commit 23a9773e1e
No known key found for this signature in database
GPG key ID: 58131A160789E630
5 changed files with 11 additions and 9 deletions

View file

@ -671,8 +671,7 @@ namespace llarp
#ifdef _WIN32 #ifdef _WIN32
struct llarp_fd_promise struct llarp_fd_promise
{ {
void void Set(std::pair< int, int >)
Set(std::pair< int, int >)
{ {
} }

View file

@ -83,7 +83,8 @@ namespace llarp
{ {
if(itr->second->Expired(now)) if(itr->second->Expired(now))
{ {
router->outboundMessageHandler().QueueRemoveEmptyPath(itr->second->TXID()); router->outboundMessageHandler().QueueRemoveEmptyPath(
itr->second->TXID());
itr = m_Paths.erase(itr); itr = m_Paths.erase(itr);
} }
else else

View file

@ -199,15 +199,15 @@ namespace llarp
} }
/// override me in subtype /// override me in subtype
virtual bool virtual bool HandleGotIntroMessage(
HandleGotIntroMessage(std::shared_ptr< const dht::GotIntroMessage >) std::shared_ptr< const dht::GotIntroMessage >)
{ {
return false; return false;
} }
/// override me in subtype /// override me in subtype
virtual bool virtual bool HandleGotRouterMessage(
HandleGotRouterMessage(std::shared_ptr< const dht::GotRouterMessage >) std::shared_ptr< const dht::GotRouterMessage >)
{ {
return false; return false;
} }

View file

@ -65,7 +65,8 @@ namespace llarp
return m_CachedAddr.ToString(); return m_CachedAddr.ToString();
} }
bool ServiceInfo::CalculateAddress(std::array< byte_t, 32 >& data) const bool
ServiceInfo::CalculateAddress(std::array< byte_t, 32 >& data) const
{ {
std::array< byte_t, 256 > tmp; std::array< byte_t, 256 > tmp;
llarp_buffer_t buf(tmp); llarp_buffer_t buf(tmp);

View file

@ -89,7 +89,8 @@ namespace llarp
} }
/// calculate our address /// calculate our address
bool CalculateAddress(std::array< byte_t, 32 >& data) const; bool
CalculateAddress(std::array< byte_t, 32 >& data) const;
bool bool
BDecode(llarp_buffer_t* buf) BDecode(llarp_buffer_t* buf)