00001
00002
00003
00004
00005
00006 #include <memory.h>
00007 #include "gateway_prot.h"
00008
00009
00010 static struct timeval TIMEOUT = { 25, 0 };
00011
00012 void *
00013 bamboo_dht_proc_null_2(void *argp, CLIENT *clnt)
00014 {
00015 static char clnt_res;
00016
00017 memset((char *)&clnt_res, 0, sizeof(clnt_res));
00018 if (clnt_call (clnt, BAMBOO_DHT_PROC_NULL,
00019 (xdrproc_t) xdr_void, (caddr_t) argp,
00020 (xdrproc_t) xdr_void, (caddr_t) &clnt_res,
00021 TIMEOUT) != RPC_SUCCESS) {
00022 return (NULL);
00023 }
00024 return ((void *)&clnt_res);
00025 }
00026
00027 bamboo_stat *
00028 bamboo_dht_proc_put_2(bamboo_put_args *argp, CLIENT *clnt)
00029 {
00030 static bamboo_stat clnt_res;
00031
00032 memset((char *)&clnt_res, 0, sizeof(clnt_res));
00033 if (clnt_call (clnt, BAMBOO_DHT_PROC_PUT,
00034 (xdrproc_t) xdr_bamboo_put_args, (caddr_t) argp,
00035 (xdrproc_t) xdr_bamboo_stat, (caddr_t) &clnt_res,
00036 TIMEOUT) != RPC_SUCCESS) {
00037 return (NULL);
00038 }
00039 return (&clnt_res);
00040 }
00041
00042 bamboo_get_res *
00043 bamboo_dht_proc_get_2(bamboo_get_args *argp, CLIENT *clnt)
00044 {
00045 static bamboo_get_res clnt_res;
00046
00047 memset((char *)&clnt_res, 0, sizeof(clnt_res));
00048 if (clnt_call (clnt, BAMBOO_DHT_PROC_GET,
00049 (xdrproc_t) xdr_bamboo_get_args, (caddr_t) argp,
00050 (xdrproc_t) xdr_bamboo_get_res, (caddr_t) &clnt_res,
00051 TIMEOUT) != RPC_SUCCESS) {
00052 return (NULL);
00053 }
00054 return (&clnt_res);
00055 }