/* hello_c.c client code for the example application */ #include #include #include "hello.h" main(int argc, char *argv[]) { CLIENT *cl; char* answer; if (argc < 2) { printf("Usage: %s \n", argv[0]); exit(1); } if (!(cl = clnt_create(argv[1], HELLOPROG,HELLOVERS,"tcp"))) { clnt_pcreateerror(argv[1]); exit(1); } printf("1\n"); answer = *helloworld_1((void *) NULL, cl); printf("2\n"); if (answer == 0) { printf("error: could not produce meaningful results"); exit(1); } printf("%s\n", answer); }