Multiplex packets into encrypted RLPX frames.
More...
#include <RLPXFrameWriter.h>
|
| struct | WriterState |
| | Queue and state for Writer Properties are used independently; only valid packets should be added to q. More...
|
| |
Multiplex packets into encrypted RLPX frames.
- Todo:
throw when enqueued packet is invalid
use RLPXFrameInfo
Definition at line 42 of file RLPXFrameWriter.h.
| dev::p2p::RLPXFrameWriter::RLPXFrameWriter |
( |
uint16_t |
_protocolType | ) |
|
|
inline |
Moves output to queue, to be muxed into frames by mux() when network buffer is ready for writing. Thread-safe.
Definition at line 40 of file RLPXFrameWriter.cpp.
Moves to queue, to be muxed into frames by mux() when network buffer is ready for writing. Thread-safe.
Definition at line 31 of file RLPXFrameWriter.cpp.
| size_t RLPXFrameWriter::mux |
( |
RLPXFrameCoder & |
_coder, |
|
|
unsigned |
_size, |
|
|
std::deque< bytes > & |
o_toWrite |
|
) |
| |
Returns number of packets framed and outputs frames to o_bytes. Not thread-safe.
Definition at line 45 of file RLPXFrameWriter.cpp.
| uint16_t dev::p2p::RLPXFrameWriter::protocolId |
( |
| ) |
const |
|
inline |
| size_t dev::p2p::RLPXFrameWriter::size |
( |
| ) |
const |
|
inline |
Returns total number of queued packets. Thread-safe.
Definition at line 70 of file RLPXFrameWriter.h.
| const uint16_t RLPXFrameWriter::EmptyFrameLength = h128::size * 3 |
|
static |
| uint16_t const dev::p2p::RLPXFrameWriter::m_protocolId |
|
private |
| uint16_t dev::p2p::RLPXFrameWriter::m_sequenceId = 0 |
|
private |
| const uint16_t RLPXFrameWriter::MinFrameDequeLength = h128::size * 4 |
|
static |
The documentation for this class was generated from the following files: