Lines Matching defs:client
283 * This routine will return a client handle that is connected to the
296 * If tp is NULL, use default timeout to get a client handle.
302 CLIENT *client = NULL;
320 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr,
322 if (client != NULL) {
325 * case where a client handle is created
346 return (client);
385 client = _clnt_tli_create_timed(RPC_ANYFD, nconf, addr, RPCBPROG,
387 if (client)
391 if (client) {
399 return (client);
403 * This routine will return a client handle that is connected to the local
453 CLIENT *client;
467 client = local_rpcb();
468 if (!client)
488 CLNT_CALL(client, RPCBPROC_SET, (xdrproc_t)xdr_rpcb, (char *)&parms,
491 CLNT_DESTROY(client);
506 CLIENT *client;
511 client = local_rpcb();
512 if (!client)
525 CLNT_CALL(client, RPCBPROC_UNSET, (xdrproc_t)xdr_rpcb, (char *)&parms,
528 CLNT_DESTROY(client);
619 * returns the client handle that it uses to contact the remote rpcbind.
620 * The caller will re-purpose the client handle to contact the remote service.
628 * XXX: Due to some problems with t_connect(), we do not reuse the same client
630 * client handle. This code will change if t_connect() ever
638 CLIENT *client = NULL;
709 client = _getclnthandle_timed(host, nconf_clts,
717 client = _getclnthandle_timed(host, nconf, &parms.r_addr, tp);
720 if (client != NULL) {
724 CLNT_CONTROL(client, CLSET_VERS, (char *)&vers);
743 CLNT_CONTROL(client, CLSET_RETRY_TIMEOUT,
746 /* Sets error structure members in client handle */
747 clnt_st = CLNT_CALL(client, RPCBPROC_GETADDRLIST,
771 clnt_geterr(client, &rpc_createerr.cf_error);
784 clnt_geterr(client, &rpc_createerr.cf_error);
792 /* No client */
797 /* Destroy a temporary client */
798 if (client != NULL && tmp_client) {
799 CLNT_DESTROY(client);
800 client = NULL;
811 if (client == NULL) {
813 client = _getclnthandle_timed(host, nconf, &parms.r_addr, tp);
816 if (client != NULL) {
830 CLNT_CONTROL(client, CLSET_RETRY_TIMEOUT,
833 CLNT_CONTROL(client, CLSET_VERS, (char *)&vers);
835 /* Sets error structure members in client handle */
836 clnt_st = CLNT_CALL(client, RPCBPROC_GETADDR,
853 /* But client call was successful */
854 clnt_geterr(client, &rpc_createerr.cf_error);
859 clnt_geterr(client, &rpc_createerr.cf_error);
866 clnt_geterr(client, &rpc_createerr.cf_error);
886 clnt_geterr(client, &rpc_createerr.cf_error);
915 if (client != NULL) {
916 CLNT_DESTROY(client);
917 client = NULL;
959 client = _getclnthandle_timed(host, newnconf,
964 if (client == NULL) {
977 CLNT_CONTROL(client, CLSET_RETRY_TIMEOUT, (char *)&rpcbrmttime);
978 CLNT_CONTROL(client, CLSET_VERS, (char *)&pmapvers);
986 /* Sets error structure members in client handle */
987 clnt_st = CLNT_CALL(client, PMAPPROC_GETPORT,
992 clnt_geterr(client, &rpc_createerr.cf_error);
997 /* But client call was successful */
998 clnt_geterr(client, &rpc_createerr.cf_error);
1003 CLNT_CONTROL(client, CLGET_SVC_ADDR, (char *)&remote);
1024 if (client != NULL && clnt_st != RPC_SUCCESS) {
1025 /* There is a client that failed */
1026 clnt_geterr(client, &rpc_createerr.cf_error);
1040 /* Return NULL address and NULL client */
1042 if (client != NULL) {
1043 CLNT_DESTROY(client);
1044 client = NULL;
1048 /* Return an address and optional client */
1049 if (client != NULL && tmp_client) {
1050 /* This client is the temporary one */
1051 CLNT_DESTROY(client);
1052 client = NULL;
1055 *clpp = client;
1056 } else if (client != NULL) {
1057 CLNT_DESTROY(client);
1105 CLIENT *client;
1109 client = getclnthandle((char *)host,
1111 if (client == NULL)
1114 clnt_st = CLNT_CALL(client, RPCBPROC_DUMP,
1124 clnt_geterr(client, &rpc_createerr.cf_error);
1129 CLNT_CONTROL(client, CLGET_VERS, (char *)&vers);
1132 CLNT_CONTROL(client, CLSET_VERS, (char *)&vers);
1133 if (CLNT_CALL(client, RPCBPROC_DUMP,
1140 clnt_geterr(client, &rpc_createerr.cf_error);
1143 CLNT_DESTROY(client);
1160 CLIENT *client;
1166 client = getclnthandle((char *)host, (struct netconfig *)nconf, NULL);
1167 if (client == NULL)
1169 CLNT_CONTROL(client, CLSET_RETRY_TIMEOUT, (char *)&rmttimeout);
1180 CLNT_CONTROL(client, CLSET_VERS, (char *)&rpcb_vers);
1181 stat = CLNT_CALL(client, RPCBPROC_CALLIT,
1210 CLNT_DESTROY(client);
1223 CLIENT *client = NULL;
1239 while (client == NULL) {
1245 client = getclnthandle((char *)host, nconf, NULL);
1246 if (client)
1250 if (client == NULL)
1253 st = CLNT_CALL(client, RPCBPROC_GETTIME,
1258 CLNT_CONTROL(client, CLGET_VERS, (char *)&vers);
1262 CLNT_CONTROL(client, CLSET_VERS, (char *)&vers);
1263 st = CLNT_CALL(client, RPCBPROC_GETTIME,
1269 CLNT_DESTROY(client);
1280 CLIENT *client;
1292 client = local_rpcb();
1293 if (!client)
1296 CLNT_CALL(client, RPCBPROC_TADDR2UADDR, (xdrproc_t)xdr_netbuf,
1299 CLNT_DESTROY(client);
1310 CLIENT *client;
1322 client = local_rpcb();
1323 if (!client)
1328 CLNT_DESTROY(client);
1332 if (CLNT_CALL(client, RPCBPROC_UADDR2TADDR, (xdrproc_t)xdr_wrapstring,
1338 CLNT_DESTROY(client);