|
@@ -10,8 +10,7 @@
|
|
|
#include <boost/thread.hpp>
|
|
|
|
|
|
#include "appconfig.hpp"
|
|
|
-
|
|
|
-#define MAXCHUNKSIZE (65536+16)
|
|
|
+#include "../Enclave/enclave_api.h"
|
|
|
|
|
|
// The inter-node (untrusted node to untrusted node) communication
|
|
|
// protocol is as follows. Nodes are numbered 0 through num_nodes-1.
|
|
@@ -53,7 +52,7 @@
|
|
|
// that MESSAGE command.
|
|
|
|
|
|
// Data for chunks are stored in frames. The frames are pre-allocated
|
|
|
-// to be MAXCHUNKSIZE bytes each, and reused as much as possible by the
|
|
|
+// to be FRAME_SIZE bytes each, and reused as much as possible by the
|
|
|
// NodeIO class. A node will request a frame from the NodeIO, which
|
|
|
// will return a pointer. The node will pass that pointer to the
|
|
|
// enclave, which will write data into it, and also return to the node
|
|
@@ -89,7 +88,7 @@ class NodeIO {
|
|
|
// The static uint64_t used to receive a header
|
|
|
uint64_t receive_header;
|
|
|
// The static frame used to receive a chunk
|
|
|
- uint8_t receive_frame[MAXCHUNKSIZE];
|
|
|
+ uint8_t receive_frame[FRAME_SIZE];
|
|
|
|
|
|
void send_header_data(uint64_t header, uint8_t *data, size_t len);
|
|
|
|