| Branch: | Revision:

grapes / src / PeerSet @ b79c8e3a

# Date Author Comment
b79c8e3a 09/11/2017 03:23 PM Luca Baldesi

add init and deinit generic function for the peer structure

They are defined as global variable initialized as:
peer_deinit = peer_deinit_data;
peer_init = peer_init_data;

0c6efcd5 07/17/2017 09:48 AM Luca Baldesi

Refactor peer structure

peer.h now exports two metadata pointers to upper layers, one for
gossiping data and the other for ancillary, user-defined data.

24f9eadf 06/19/2017 05:18 PM Luca Baldesi

remove cb_size and capacity attribute from peer struct
add a void pointer to metadata

10ddaca7 06/06/2017 06:32 PM Luca Baldesi

general bug fixings

- add destroy function to peersamplers, so to avoid memory leaks in case of multiple instances
- fix initialization bug in the chunk_buffer constructor
- fix peerset_clear reallocation for the case size is set to 0 (destruction)

c5922d21 01/07/2016 11:40 AM Luca Abeni

Fix some warnings

67700aad 11/18/2014 02:03 PM Luca Baldesi

generic bugfixing

fix warning alert on peerset_for_each
fix peers comparison crash bug
fix nodeid comparison crash bug

176b8de8 11/07/2014 09:53 AM Luca Baldesi

export configuration structure files.

configuration tool has changed its name into grapes_config and it's now available as a public interface of the GRAPES library

41012841 10/21/2014 07:27 AM Luca Baldesi

add peerset destroy and for each peerset functions

91566cec 10/17/2014 09:15 AM Luca Baldesi

add peerset_push and peerset_pop function

fe3ab307 04/01/2014 09:35 AM Luca Baldesi

interface refactoring introducing const

f5da4883 08/22/2011 02:25 PM Csaba Kiraly

peerset fix: assign initial value to capacity

maybe NAN would be better

f4916f84 08/22/2011 02:25 PM Csaba Kiraly

peerset: fix memory corruption in remove_peer

391fed9c 05/30/2011 12:12 PM Luca Abeni

Merge commit '9c3d2b9e5be53fbc11f150a54386cf92c2ba5d10'


82438fe3 03/16/2011 01:09 PM Luca Abeni

Fix peer allocation in peerset

A realloc due to add_peer() could invalidate a previously returned
pointer to peer

9c3d2b9e 02/21/2011 12:12 AM Csaba Kiraly

faster insert with binary search

ee18ff79 02/20/2011 11:52 PM Csaba Kiraly

faster insert

7b60aa43 02/20/2011 11:25 PM Csaba Kiraly

peerset: implement faster (binary) search

TODO: insert became slower, it could be made somewhat faster

e91f1bd5 11/05/2010 01:40 PM Luca Abeni

Out of Tree compilation support

c7e57971 11/05/2010 01:37 PM Luca Abeni

Properly point to utils.mak through BASE

d97b1942 11/05/2010 01:06 PM Luca Abeni

Make a distinction between BASE and CFGDIR, and properly set them

This is useful for out-of-tree build

7913b03a 10/11/2010 01:59 PM Csaba Kiraly

verify config_parse return value in various files

3d137997 07/27/2010 08:53 AM Csaba Kiraly

renaming som to src