Statistics
| Branch: | Revision:

grapes / src / Tests / peer_util.h @ 7b60aa43

History | View | Annotate | Download (350 Bytes)

1
/*
2
 * peer.c headers
3
 *
4
 *  Created on: June 24, 2010
5
 *      Author: Marco Biazzini
6
 */
7

    
8

    
9
#include "peer.h"
10

    
11
struct peer *peerCreate (struct nodeID *id, int *size);
12

    
13

    
14
void peerDelete (struct peer *p) ;
15

    
16
// serialize nodeID and cb_size only
17
int peerDump(const struct peer *p, uint8_t **buf);
18

    
19

    
20
struct peer* peerUndump(const uint8_t *buf, int *size);