Statistics
| Branch: | Revision:

grapes / src / Cache / cyclon_proto.h @ b3878656

History | View | Annotate | Download (538 Bytes)

1
#ifndef CYCLON_PROTO
2
#define CYCLON_PROTO
3

    
4
struct cyclon_proto_context;
5

    
6
struct cyclon_proto_context* cyclon_proto_init(struct nodeID *s, const void *meta, int meta_size);
7

    
8

    
9
int cyclon_reply(struct cyclon_proto_context *context, const struct peer_cache *c, struct peer_cache *local_cache);
10
int cyclon_query(struct cyclon_proto_context *context, struct peer_cache *local_cache, struct nodeID *dst);
11

    
12
int cyclon_proto_change_metadata(struct cyclon_proto_context *context, const void *metadata, int metadata_size);
13
#endif        /* CYCLON_PROTO */