|
|
@ -1,5 +1,5 @@ |
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2022, The PurpleI2P Project |
|
|
|
* Copyright (c) 2013-2024, The PurpleI2P Project |
|
|
|
* |
|
|
|
* |
|
|
|
* This file is part of Purple i2pd project and licensed under BSD3 |
|
|
|
* This file is part of Purple i2pd project and licensed under BSD3 |
|
|
|
* |
|
|
|
* |
|
|
@ -28,6 +28,7 @@ namespace transport |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
const size_t NTCP2_UNENCRYPTED_FRAME_MAX_SIZE = 65519; |
|
|
|
const size_t NTCP2_UNENCRYPTED_FRAME_MAX_SIZE = 65519; |
|
|
|
|
|
|
|
const size_t NTCP2_SEND_AFTER_FRAME_SIZE = 16386; // send frame when exceeds this size
|
|
|
|
const size_t NTCP2_SESSION_REQUEST_MAX_SIZE = 287; |
|
|
|
const size_t NTCP2_SESSION_REQUEST_MAX_SIZE = 287; |
|
|
|
const size_t NTCP2_SESSION_CREATED_MAX_SIZE = 287; |
|
|
|
const size_t NTCP2_SESSION_CREATED_MAX_SIZE = 287; |
|
|
|
const int NTCP2_MAX_PADDING_RATIO = 6; // in %
|
|
|
|
const int NTCP2_MAX_PADDING_RATIO = 6; // in %
|
|
|
|