| 147 | } |
| 148 | |
| 149 | void RLPXFrameCoder::writeFrame(uint16_t _protocolType, bytesConstRef _payload, bytes& o_bytes) |
| 150 | { |
| 151 | RLPStream header; |
| 152 | uint32_t len = (uint32_t)_payload.size(); |
| 153 | header.appendRaw(bytes({byte((len >> 16) & 0xff), byte((len >> 8) & 0xff), byte(len & 0xff)})); |
| 154 | header.appendList(1) << _protocolType; |
| 155 | writeFrame(header, _payload, o_bytes); |
| 156 | } |
| 157 | |
| 158 | void RLPXFrameCoder::writeFrame(uint16_t _protocolType, uint16_t _seqId, bytesConstRef _payload, bytes& o_bytes) |
| 159 | { |