00001 /* 00002 ** AUTHORS: 00003 ** Rama Alebouyeh (rama[at]cs.ucsb.edu) 00004 ** Matthew S Allen (msa[at]cs.ucsb.edu) 00005 */ 00006 00007 #ifndef _CHIMERA_ROUTE_H_ 00008 #define _CHIMERA_ROUTE_H_ 00009 00010 #include "chimera.h" 00011 00016 void * route_init(ChimeraHost *me); 00017 00023 ChimeraHost **route_lookup(ChimeraState *state,Key key, int count, int is_safe); 00024 00025 00030 ChimeraHost **route_neighbors(ChimeraState *state,int count); 00031 00032 00040 void route_update(ChimeraState *state,ChimeraHost *host, int joined); 00041 00042 00047 ChimeraHost **route_row_lookup(ChimeraState *state, Key key); 00048 00049 00054 ChimeraHost **route_get_table(ChimeraState *state); 00055 00058 void printTable(ChimeraState *state); 00059 00060 #endif /* _CHIMERA_ROUTE_H_ */