75 friend class RLPXFrameIOMux;
93 void writeFrame(uint16_t _protocolType, uint16_t _seqId,
bytesConstRef _payload,
bytes& o_bytes);
96 void writeFrame(uint16_t _protocolType, uint16_t _seqId, uint32_t _totalSize,
bytesConstRef _payload,
bytes& o_bytes);
102 bool authAndDecryptHeader(
bytesRef io_cipherWithMac);
105 bool authAndDecryptFrame(
bytesRef io_cipherWithMac);
111 h128 ingressDigest();
123 void updateIngressMACWithHeader(
bytesConstRef _headerCipher);
129 std::unique_ptr<class RLPXFrameCoderImpl>
m_impl;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
RLP const header
Header RLP.
bytes const data
Bytes of Header.
std::unique_ptr< class RLPXFrameCoderImpl > m_impl
Base class for all exceptions.
std::vector< byte > bytes
uint32_t const totalLength
Set to total length of packet in first frame of multiframe packet.
bool const multiFrame
If this frame is part of a sequence.
Class for writing to an RLP bytestream.
Derive DH shared secret from EC keypairs.
Encoder/decoder transport for RLPx connection established by RLPXHandshake.
uint8_t const padding
Length of padding which follows .
uint32_t const length
Size of frame (excludes padding). Max: 2**24.
Class for interpreting Recursive Linear-Prefix Data.
uint16_t const protocolId
Protocol ID as negotiated by handshake.
Setup inbound or outbound connection for communication over RLPXFrameCoder.
uint16_t const sequenceId
Sequence ID of frame.