Created
December 17, 2020 15:19
-
-
Save rroohhh/4cb563653469b381f3136a0b5f7df1aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cinttypes> | |
#include <cstdlib> | |
#include <cstring> | |
#include <cstdio> | |
#include <functional> | |
const uint8_t READ_FAILED = 0; | |
const uint8_t READ_SUCCESS = 1; | |
const uint8_t MAX_FIELDS = 8; | |
const uint32_t FIELDS_BUFFER_SIZE = 512; | |
const uint8_t BUFFER_SIZE = 128; | |
const uint8_t MAX_OUTSTANDING_REQUESTS = 8; | |
const char * FIELD_SEPERATOR = ""; | |
const char * EOT = ""; | |
const char * SEPERATOR = " |