Statistics
| Branch: | Revision:

grapes / src / Cache / ncast_proto.h @ 10ddaca7

History | View | Annotate | Download (812 Bytes)

1
#ifndef NCAST_PROTO
2
#define NCAST_PROTO
3

    
4
struct ncast_proto_context;
5

    
6
struct ncast_proto_context* ncast_proto_init(struct nodeID *s, const void *meta, int meta_size);
7
void ncast_proto_destroy(struct ncast_proto_context **);
8

    
9
int ncast_reply(struct ncast_proto_context *context, const struct peer_cache *c, const struct peer_cache *local_cache);
10
int ncast_query(struct ncast_proto_context *context, const struct peer_cache *local_cache);
11
int ncast_query_peer(struct ncast_proto_context *context, const struct peer_cache *local_cache, struct nodeID *dst);
12
int ncast_proto_metadata_update(struct ncast_proto_context *context, const void *meta, int meta_size);
13
int ncast_proto_myentry_update(struct ncast_proto_context *context, struct nodeID *s, int dts, const void *meta, int meta_size);
14

    
15
#endif        /* NCAST_PROTO */