|
Monero
|
Classes | |
| class | async_protocol_handler |
| class | async_protocol_handler_config |
| struct | bucket_head |
| struct | bucket_head2 |
| struct | levin_commands_handler |
| class | message_writer |
| Provides space for levin (p2p) header, so that payload can be sent without copy. More... | |
| struct | protocl_handler_config |
| class | protocol_handler |
Functions | |
| const char * | get_err_descr (int err) |
| bucket_head2 | make_header (uint32_t command, uint64_t msg_size, uint32_t flags, bool expect_response) noexcept |
| byte_slice | make_noise_notify (std::size_t noise_bytes) |
| byte_slice | make_fragmented_notify (const std::size_t noise_size, int command, message_writer message) |
|
inline |
| byte_slice epee::levin::make_fragmented_notify | ( | const std::size_t | noise_size, |
| int | command, | ||
| message_writer | message | ||
| ) |
Generate 1+ levin messages that are identical to the noise message size.
| noise_size | Each levin message will be identical to this value. |
nullptr if noise.size() is less than the levin header size. Otherwise, a levin notification message OR 2+ levin fragment messages. Each message is noise.size() in length.
|
noexcept |
| byte_slice epee::levin::make_noise_notify | ( | std::size_t | noise_bytes | ) |
Generate a dummy levin message.
| noise_bytes | Total size of the returned byte_slice. |
nullptr if noise_size is smaller than the levin header. Otherwise, a dummy levin message.
1.8.14