Hello,

i have to make a program that uses RPC with sorted linked list using rpcgen.
i have to add new elements to my linked list and there is no problem when i use for the first time the server function, but when i want to add another elements they are added but the previous elements are not there. I suppose that the linked list is cleared everytime when i use the server function.

Please, help me with adding new elements.

use the 2 files that i attached and that one llist.x:

Code:
//llist.x
struct list {
	
	int key;
	list *next;
};

program PRINTER {
	version PRINTER_V1 {
		int PRINT_LIST(list) = 1;
		int SUM_LIST(list) = 2;
	} = 1;
} = 0x2fffffff;