summaryrefslogtreecommitdiffstats
path: root/Bachelor/Verteilte Systeme/Praktikum2/Vorgabe/addiere_server.c_NACH_Ergaenzung
blob: 3f8bb84b06a4973fd3f22fc7093899b86f2932a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * This is sample code generated by rpcgen.
 * These are only templates and you can use them
 * as a guideline for developing your own functions.
 */

#include "addiere.h"

int *
addiere_1_svc(add_struct *argp, struct svc_req *rqstp)
{
	static int  result;

	/*
	 * insert server code here
	 */

	/* my Code START */
	result = argp->p1 + argp->p2;
	/* my Code END */

	return &result;
}