Lines Matching refs:transp
64 onehost(const char *host, const char *transp) in onehost() argument
80 if ((clnt = clnt_create_timed(host, RPCBPROG, RPCBVERS, transp, in onehost()
87 if ((clnt = clnt_create(host, RPCBPROG, RPCBVERS, transp)) == NULL) in onehost()
114 server(struct svc_req *rqstp, SVCXPRT *transp) in server() argument
122 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) in server()
128 if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL)) in server()
130 svc_destroy(transp); in server()
133 svcerr_noproc(transp); in server()
137 if (!svc_getargs(transp, (xdrproc_t)xdr_int, (void *)&num)) { in server()
138 svcerr_decode(transp); in server()
143 if (!svc_sendreply(transp, (xdrproc_t)xdr_int, (void *)&num)) in server()
185 regtest(const char *hostname, const char *transp, const char *arg, int p) in regtest() argument
200 if (!svc_create(server, PROGNUM, VERSNUM, transp)) in regtest()
218 clnt = clnt_create(hostname, PROGNUM, VERSNUM, transp); in regtest()
241 allhosts(const char *transp) in allhosts() argument
247 NULL, (resultproc_t)reply, transp); in allhosts()
257 const char *transp = "udp"; in main() local
269 transp = "tcp"; in main()
272 transp = "udp"; in main()
275 transp = NULL; in main()
285 if (transp) in main()
286 allhosts(transp); in main()
291 if (transp) in main()
293 onehost(argv[optind], transp) : in main()
294 regtest(argv[optind], transp, "1", p); in main()