Reference Guide C API www.spreadconcepts.com


C API
Replicated Hash Table
Version 2.0


rht_options
  typedef struct {
     const char * daemon_name;
     rht_name login_name;
     rht_name rp_name;

     rht_key_cmp_fcn key_cmp;
     rht_key_hcode_fcn key_hcode;
     const void * key_cntxt;

     rht_on_update_cb on_update_cb;
     rht_on_synch_diff_cb on_synch_diff_cb;
     rht_on_failure_cb on_failure_cb;
     rht_on_trash_cb on_trash_cb;

     int flags;

} rht_options;



Members
  daemon_name spread daemon to use: port_number@machine_name (e.g. "4803@localhost")
  login_name name for this replicant to use to login to Spread daemon (0 length -> any name)
  rp_name global name of the RHT to replicate
  key_cmp key blob comparison fcn (NULL forces the use of the default compare function)
  key_hcode key blob hashcode fcn (NULL sets the use of the default hash code function)
  key_cntxt passed to key fcns (can be NULL) **** USER PROTECTED ****
  on_update_cb callback on new update being applied (can be NULL)
  on_synch_diff_cb callback on synchronization change (can be NULL)
  on_failure_cb callback on fatal error (can be NULL)
  on_trash_cb callback when replicant has been completely reclaimed (can be NULL)
  flags creation level flags (RHT_UNION is default or choose RHT_INTERSECT)


 
Description
  Passed into the spdrs_create function to specify the operating parameters of a replica.


Requirements
  Header: Declared in rht.h
Library: Use rht.lib
Version: 2.0


Also See
  RHT reference guide, rht_create, dictionary operations


Copyright © 2004, Spread Concepts LLC, All rights reserved