mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Added release build support. (#119)
* Cleaned up and updated cmake to have release build support. * Added segfault handler. * Added latest hpfs release build. * Fixed coding issues revealed by release build.
This commit is contained in:
@@ -202,12 +202,13 @@ namespace comm
|
||||
{
|
||||
// Prepare the memory segments to map with writev().
|
||||
iovec memsegs[2];
|
||||
uint8_t header_buf[SIZE_HEADER_LEN] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
|
||||
if (is_binary)
|
||||
{
|
||||
// In binary mode, we need to prefix every message with the message size header.
|
||||
uint8_t header_buf[SIZE_HEADER_LEN] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||
uint32_t len = message.length();
|
||||
|
||||
// Reserve the first 4 bytes for future (TODO).
|
||||
header_buf[4] = len >> 24;
|
||||
header_buf[5] = (len >> 16) & 0xff;
|
||||
|
||||
Reference in New Issue
Block a user