X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpopulation.h;h=8dc7c730c04625451ce4e881d729bc5029d4a70a;hb=9cd71de93b412bd24e5e5b512ec0b774f4123b9d;hp=64b3d8f7f6d59de76a10f832b68ff57936d97949;hpb=56d27db8127f1e2de5461b8f8cf72f314be47c37;p=libpopulation.git diff --git a/src/population.h b/src/population.h index 64b3d8f..8dc7c73 100644 --- a/src/population.h +++ b/src/population.h @@ -24,7 +24,8 @@ typedef struct population_s population_t; /* * Constructor and destructor */ -population_t *population_create (pi_rate_f rate, pi_copy_f copy, pi_free_f f); +population_t *population_create (pi_rate_f rate, + pi_copy_f copy, pi_free_f f); void population_destroy (population_t *p); /* @@ -36,6 +37,8 @@ int population_set_serialization (population_t *p, #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, + const char *node, const char *port); /* * Methods