new: implement PULL command, add join functions

This commit is contained in:
ngn
2024-07-01 06:43:20 +03:00
parent 5513abb371
commit 3c603fef22
37 changed files with 791 additions and 338 deletions

View File

@ -21,12 +21,15 @@ int main(int argc, char *argv[]) {
goto end;
}
if (lm_ctx_pools_add(&ctx, "test", "mptp://127.0.0.1:5858") == NULL) {
if (lm_ctx_pool_add(&ctx, "base", "mptp://127.0.0.1:5858") == NULL) {
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
if (!lm_ctx_pools_serve(&ctx, argv[1], 10)) {
lm_ctx_pool_get_info(&ctx, false, false, NULL, NULL);
lm_ctx_pool_get_list(&ctx, false, false, NULL, NULL);
if (!lm_ctx_pool_serve(&ctx, argv[1], 10)) {
printf("failed to serve the pools: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}