Statistics
| Branch: | Revision:

grapes / include / peer.h @ e63fd582

History | View | Annotate | Download (529 Bytes)

1
/**
2
 * @file:   peer.h
3
 * @brief Peer structure definition.
4
 * @author: Alessandro Russo <russo@disi.unitn.it>
5
 *
6
 * @date December 15, 2009, 2:09 PM
7
 */
8

    
9
#ifndef _PEER_H
10
#define        _PEER_H
11

    
12
#include <sys/time.h>
13

    
14
struct peer {
15
    struct nodeID *id; ///< NodeId associated to the peer
16
    struct timeval creation_timestamp; ///< creation timestamp
17
    struct chunkID_set *bmap; ///< buffermap of the peer
18
    struct timeval bmap_timestamp; ///< buffermap timestamp
19
    int cb_size; ///< chunk buffer size
20
};
21

    
22

    
23
#endif        /* _PEER_H */