From: bdemsky Date: Tue, 22 Sep 2009 11:37:47 +0000 (+0000) Subject: almost forgot X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f824a2b8f1b061e1252c4e9ee9c00f0e643e3048;p=IRC.git almost forgot --- 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