diff options
Diffstat (limited to 'Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c')
| -rw-r--r-- | Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c b/Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c new file mode 100644 index 0000000..a867ddb --- /dev/null +++ b/Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c @@ -0,0 +1,40 @@ +/*
+ * Please do not edit this file.
+ * It was generated using rpcgen.
+ */
+
+#include <memory.h> /* for memset */
+#include "telbuch.h"
+
+/* Default timeout can be changed using clnt_control() */
+static struct timeval TIMEOUT = { 25, 0 };
+
+Ergebnis *
+addentry_1(addStruct *argp, CLIENT *clnt)
+{
+ static Ergebnis clnt_res;
+
+ memset((char *)&clnt_res, 0, sizeof(clnt_res));
+ if (clnt_call (clnt, addEntry,
+ (xdrproc_t) xdr_addStruct, (caddr_t) argp,
+ (xdrproc_t) xdr_Ergebnis, (caddr_t) &clnt_res,
+ TIMEOUT) != RPC_SUCCESS) {
+ return (NULL);
+ }
+ return (&clnt_res);
+}
+
+Ergebnis *
+searchentry_1(searchStruct *argp, CLIENT *clnt)
+{
+ static Ergebnis clnt_res;
+
+ memset((char *)&clnt_res, 0, sizeof(clnt_res));
+ if (clnt_call (clnt, searchEntry,
+ (xdrproc_t) xdr_searchStruct, (caddr_t) argp,
+ (xdrproc_t) xdr_Ergebnis, (caddr_t) &clnt_res,
+ TIMEOUT) != RPC_SUCCESS) {
+ return (NULL);
+ }
+ return (&clnt_res);
+}
|
