mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
calculate SSU2 session MTU and max payload size
This commit is contained in:
parent
1dd2bd0013
commit
3394bb4b8d
4 changed files with 97 additions and 75 deletions
|
@ -24,6 +24,10 @@ namespace i2p
|
|||
{
|
||||
namespace transport
|
||||
{
|
||||
const size_t IPV4_HEADER_SIZE = 20;
|
||||
const size_t IPV6_HEADER_SIZE = 40;
|
||||
const size_t UDP_HEADER_SIZE = 8;
|
||||
|
||||
class SignedData
|
||||
{
|
||||
public:
|
||||
|
@ -64,7 +68,7 @@ namespace transport
|
|||
|
||||
std::stringstream m_Stream;
|
||||
};
|
||||
|
||||
|
||||
class TransportSession
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue