Revision ef4061e4 include/net_helper.h

View differences:

include/net_helper.h
36 36
int nodeid_equal(const struct nodeID *s1, const struct nodeID *s2);
37 37

  
38 38
/**
39
* @brief Compare two nodes and give some consistent ordering.
40
* This ordering  should only be used for keeping lists ordered, it has no other meaning.
41
* @param[in] s1 The first nodeID to be compared.
42
* @param[in] s2 The second nodeID to be compared.
43
* @return -1, 0 or 1, depending on the relation between  s1 and s2.
44
*/
45
int nodeid_cmp(const struct nodeID *s1, const struct nodeID *s2);
46

  
47
/**
39 48
* @brief Create a new nodeID.
40 49
* Create a new nodeID from a given IP address and port number.
41 50
* @param[in] IPaddr The IP address in string form to be associated to the new nodeID.

Also available in: Unified diff