summaryrefslogtreecommitdiffstats
path: root/Bachelor/Verteilte Systeme/Praktikum2/loesung/telbuch_clnt.c
blob: a867ddb7164ce6597ed15e8ae7fd3dcd459ad26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
}