/* simple test program for a remote sort */ #include #include #include #include #include #include #include #include #include #include "cu.h" #include "sort.h" #define N 100 main(int argc, char **argv) { struct cu_data cu; char *server; int x[TB_LEN], i, j; table v; bool_t res; if(argc <= 2) { fprintf(stderr, "usage: %s host\n", argv[0]); exit(1); } server = argv[1]; /* Initialization of the RPC */ /* You have to look to this function and understand how fields are initialized */ cu = ClntUdp_create(server, SORTPROG, SORTVERS); /* pack the arguments into table x */ for(i=0; i