X-Git-Url: https://git.octo.it/?p=libpopulation.git;a=blobdiff_plain;f=src%2Fpopulation.h;fp=src%2Fpopulation.h;h=cc513d4f0a4b652ca7bd45e19aa8ec96cc349d90;hp=8dc7c730c04625451ce4e881d729bc5029d4a70a;hb=da78e9d3abd8a803a5c8d662b8f8f1cbadb3c956;hpb=e9979110419e14fc3d6317f82cc9ed3c1fd3c5ba diff --git a/src/population.h b/src/population.h index 8dc7c73..cc513d4 100644 --- a/src/population.h +++ b/src/population.h @@ -35,6 +35,10 @@ int population_set_size (population_t *p, size_t population_size); int population_set_serialization (population_t *p, pi_serialize_f serialize, pi_unserialize_f unserialize); +#define POPULATION_REPLACEMENT_EXPLOIT 1 +#define POPULATION_REPLACEMENT_EXPLORE 2 +int population_set_replacement_method (population_t *p, int method); + #define POPULATION_DEFAULT_PORT "46835" int population_add_peer (population_t *p, const char *node, const char *port); int population_start_listen_thread (population_t *p,