[OpenDHT-Users] SUN RPC gateway_prot.x VERSION 3 (Ronny Klauck)

Roger Pack rogerpack2005 at gmail.com
Fri Nov 16 15:22:00 UTC 2007


>    1. SUN RPC gateway_prot.x VERSION 3 (Ronny Klauck)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 15 Nov 2007 18:17:04 +0100
> From: Ronny Klauck <ronny.klauck at googlemail.com>
> Subject: [OpenDHT-Users] SUN RPC gateway_prot.x VERSION 3
> To: opendht-users at opendht.org
> Message-ID: <20071115181704.62db5009.ronny.klauck at gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> hi,
>
> i am trying to rewrite the simple-example from opendht.org (http://www.opendht.org/gateway_test.c)
> in c which uses VERSION 2 of the get/put/rm interface.
> in the new version i use VERSION 3 from the interface in gateway_prot.x, but it seems not to work.
>
> my problem:
> i can do a put and oendht and as a result i get a BAMBOO_OK.
> when i do a get on the same key, there is nothing on the server. the get is succesful.
>
> the difference fron VERSION 2 to 3 in a put is:
>         put_args->secret_hash.algorithm = "SHA1";
>         put_args->secret_hash.hash.hash_len = 4;
>         put_args->secret_hash.hash.hash_val = "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3";
>
>         put_result = bamboo_dht_proc_put_3 (put_args, clnt);
> and the new data-typ for the args:
>         bamboo_put_arguments put_args;
>
> the difference fron VERSION 2 to 3 in a get is:
>         bamboo_get_args get_args;
>         bamboo_get_result  *get_result;
>
>         get_result = bamboo_dht_proc_get_3 (get_args, clnt);
>
>         if (get_result->values.values_len >= 1) {
>                 printf ("%s\n", get_result->values.values_val->value.bamboo_value_val);
>         }
>
> on my point of view, the put does not save anything on the server, because doing a put with VERSION 2 and doing a get
> with VERSION 3 i get a "RPC: Can't decode result". so it seems that the get works, but cant read the VERSION 2 of a put,
> but thats ok.
>
>
> regards
> ronny
>
>
> ------------------------------
>
> _______________________________________________
> OpenDHT-Users mailing list
> OpenDHT-Users at opendht.org
> http://opendht.org/cgi-bin/mailman/listinfo/opendht-users
>
>
> End of OpenDHT-Users Digest, Vol 14, Issue 4
> ********************************************
>



-- 
-Roger Pack
For God hath not given us the spirit of fear; but of power, and of
love, and of a sound mind" -- 2 Timothy 1:7


More information about the OpenDHT-Users mailing list