almost forgot
authorbdemsky <bdemsky>
Tue, 22 Sep 2009 11:37:47 +0000 (11:37 +0000)
committerbdemsky <bdemsky>
Tue, 22 Sep 2009 11:37:47 +0000 (11:37 +0000)
Robust/src/Runtime/DSTM/interface/readstruct.h [new file with mode: 0644]

diff --git a/Robust/src/Runtime/DSTM/interface/readstruct.h b/Robust/src/Runtime/DSTM/interface/readstruct.h
new file mode 100644 (file)
index 0000000..ffd1a47
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef READSTRUCT_H
+#define READSTRUCT_H
+#define MAXBUF 1024
+struct readstruct {
+  char buf[MAXBUF];
+  int head;
+  int tail;
+};
+
+void recv_data_buf(int fd, struct readstruct *, void *buffer, int buflen);
+int recv_data_errorcode_buf(int fd, struct readstruct *, void *buffer, int buflen);
+
+#endif