Statistics
| Branch: | Revision:

grapes / include / peer.h @ 0c6efcd5

History | View | Annotate | Download (574 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
    /* Peer identifier, the nodeid associated with the peer */
16
    struct nodeID *id;
17

    
18
    /* Peer creation time */
19
    struct timeval creation_timestamp; 
20

    
21
    /* User defined data to be broadcasted in the network */
22
    void * metadata; 
23

    
24
    /* User defined data not to be sent over the network */
25
    void * user_data;
26
};
27

    
28

    
29
#endif        /* _PEER_H */