Statistics
| Branch: | Revision:

grapes / src / Cache / ncast_proto.h @ eedc3100

History | View | Annotate | Download (626 Bytes)

1 60fa723d Luca Abeni
#ifndef NCAST_PROTO
2
#define NCAST_PROTO
3
4 d83a94fa Andrea Zito
struct ncast_proto_context;
5
6 b3878656 Luca Abeni
struct ncast_proto_context* ncast_proto_init(struct nodeID *s, const void *meta, int meta_size);
7 d83a94fa Andrea Zito
8 4cf3adfd Luca Abeni
int ncast_reply(struct ncast_proto_context *context, const struct peer_cache *c, const struct peer_cache *local_cache);
9
int ncast_query(struct ncast_proto_context *context, const struct peer_cache *local_cache);
10
int ncast_query_peer(struct ncast_proto_context *context, const struct peer_cache *local_cache, struct nodeID *dst);
11 b3878656 Luca Abeni
int ncast_proto_metadata_update(struct ncast_proto_context *context, const void *meta, int meta_size);
12 60fa723d Luca Abeni
13
#endif        /* NCAST_PROTO */