mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 08:14:15 +00:00
handle session destroyed
This commit is contained in:
parent
4862b594e8
commit
f8d105551f
9
SSU.cpp
9
SSU.cpp
@ -87,15 +87,22 @@ namespace ssu
|
|||||||
LogPrint ("SSU test received");
|
LogPrint ("SSU test received");
|
||||||
break;
|
break;
|
||||||
case PAYLOAD_TYPE_SESSION_DESTROYED:
|
case PAYLOAD_TYPE_SESSION_DESTROYED:
|
||||||
|
{
|
||||||
LogPrint ("SSU session destroy received");
|
LogPrint ("SSU session destroy received");
|
||||||
|
if (m_Server)
|
||||||
|
m_Server->DeleteSession (this); // delete this
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LogPrint ("Unexpected SSU payload type ", (int)payloadType);
|
LogPrint ("Unexpected SSU payload type ", (int)payloadType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: try intro key as well
|
// TODO: try intro key
|
||||||
else
|
else
|
||||||
|
{
|
||||||
LogPrint ("MAC verifcation failed");
|
LogPrint ("MAC verifcation failed");
|
||||||
|
m_State = eSessionStateUnknown;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSUSession::ProcessSessionRequest (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint)
|
void SSUSession::ProcessSessionRequest (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user