From f824a2b8f1b061e1252c4e9ee9c00f0e643e3048 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Tue, 22 Sep 2009 11:37:47 +0000 Subject: [PATCH] almost forgot --- Robust/src/Runtime/DSTM/interface/readstruct.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Robust/src/Runtime/DSTM/interface/readstruct.h diff --git a/Robust/src/Runtime/DSTM/interface/readstruct.h b/Robust/src/Runtime/DSTM/interface/readstruct.h new file mode 100644 index 00000000..ffd1a47d --- /dev/null +++ b/Robust/src/Runtime/DSTM/interface/readstruct.h @@ -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 -- 2.34.1