mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
generic SSU timer
This commit is contained in:
parent
c600be59b1
commit
4970b4d14e
2 changed files with 32 additions and 32 deletions
6
SSU.h
6
SSU.h
|
@ -68,7 +68,7 @@ namespace ssu
|
|||
{
|
||||
public:
|
||||
|
||||
SSUSession (SSUServer * server, boost::asio::ip::udp::endpoint& remoteEndpoint,
|
||||
SSUSession (SSUServer& server, boost::asio::ip::udp::endpoint& remoteEndpoint,
|
||||
const i2p::data::RouterInfo * router = nullptr);
|
||||
void ProcessNextMessage (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint);
|
||||
~SSUSession ();
|
||||
|
@ -109,10 +109,10 @@ namespace ssu
|
|||
|
||||
private:
|
||||
|
||||
SSUServer * m_Server;
|
||||
SSUServer& m_Server;
|
||||
boost::asio::ip::udp::endpoint m_RemoteEndpoint;
|
||||
const i2p::data::RouterInfo * m_RemoteRouter;
|
||||
boost::asio::deadline_timer * m_ConnectTimer;
|
||||
boost::asio::deadline_timer m_Timer;
|
||||
SessionState m_State;
|
||||
CryptoPP::CBC_Mode<CryptoPP::AES>::Encryption m_Encryption;
|
||||
CryptoPP::CBC_Mode<CryptoPP::AES>::Decryption m_Decryption;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue