Lines Matching defs:transp
63 onehost(const char *host, const char *transp)
77 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL)
97 server(struct svc_req *rqstp, SVCXPRT *transp)
105 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
111 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
113 svc_destroy(transp);
116 svcerr_noproc(transp);
120 if (!svc_getargs(transp, (xdrproc_t)xdr_int, (void *)&num)) {
121 svcerr_decode(transp);
126 if (!svc_sendreply(transp, (xdrproc_t)xdr_int, (void *)&num))
168 regtest(const char *hostname, const char *transp, const char *arg, int p)
181 if (!svc_create(server, PROGNUM, VERSNUM, transp))
197 clnt = clnt_create(hostname, PROGNUM, VERSNUM, transp);
220 allhosts(const char *transp)
226 NULL, (resultproc_t)reply, transp);
236 const char *transp = "udp";
248 transp = "tcp";
251 transp = "udp";
254 transp = NULL;
264 if (transp)
265 allhosts(transp);
270 if (transp)
272 onehost(argv[optind], transp) :
273 regtest(argv[optind], transp, "1", p);