mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
generic tag introduced
This commit is contained in:
parent
a01e2213eb
commit
13fec9bdfc
5 changed files with 41 additions and 57 deletions
15
SSU.h
15
SSU.h
|
@ -114,20 +114,7 @@ namespace ssu
|
|||
|
||||
private:
|
||||
|
||||
union IV
|
||||
{
|
||||
uint8_t buf[16];
|
||||
uint64_t ll[2];
|
||||
|
||||
IV (const IV&) = default;
|
||||
IV (const uint8_t * iv) { memcpy (buf, iv, 16); };
|
||||
bool operator< (const IV& other) const
|
||||
{
|
||||
if (ll[0] != other.ll[0]) return ll[0] < other.ll[0];
|
||||
return ll[1] < other.ll[1];
|
||||
};
|
||||
};
|
||||
|
||||
typedef i2p::data::Tag<16> IV;
|
||||
friend class SSUData; // TODO: change in later
|
||||
SSUServer& m_Server;
|
||||
boost::asio::ip::udp::endpoint m_RemoteEndpoint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue