mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 19:14:50 -04:00
add a max levin packet size by command type
This commit is contained in:
parent
00b3502749
commit
3c7eec152c
8 changed files with 60 additions and 4 deletions
|
@ -54,6 +54,7 @@ namespace
|
|||
{
|
||||
static constexpr int handshake_command() noexcept { return 1001; }
|
||||
static constexpr bool handshake_complete() noexcept { return true; }
|
||||
size_t get_max_bytes(int command) const { return LEVIN_DEFAULT_MAX_PACKET_SIZE; }
|
||||
};
|
||||
|
||||
typedef epee::levin::async_protocol_handler_config<test_levin_connection_context> test_levin_protocol_handler_config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue