mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
separate and move own peer test to SSU2Server
This commit is contained in:
parent
9968afc038
commit
2dfc9003a7
4 changed files with 58 additions and 25 deletions
|
@ -395,18 +395,18 @@ namespace transport
|
|||
{
|
||||
public:
|
||||
|
||||
SSU2PeerTestSession (SSU2Server& server, uint64_t sourceConnID, uint64_t destConnID,
|
||||
std::shared_ptr<SSU2Session> mainSession);
|
||||
SSU2PeerTestSession (SSU2Server& server, uint64_t sourceConnID, uint64_t destConnID);
|
||||
|
||||
uint8_t GetMsgNumReceived () const { return m_MsgNumReceived; }
|
||||
bool ProcessPeerTest (uint8_t * buf, size_t len) override;
|
||||
|
||||
private:
|
||||
|
||||
void HandlePeerTest (const uint8_t * buf, size_t len) override;
|
||||
|
||||
|
||||
private:
|
||||
|
||||
std::weak_ptr<SSU2Session> m_MainSession;
|
||||
uint8_t m_MsgNumReceived;
|
||||
};
|
||||
|
||||
inline uint64_t CreateHeaderMask (const uint8_t * kh, const uint8_t * nonce)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue