update: add host info to the MPTP packets

This commit is contained in:
ngn
2024-06-23 01:55:01 +03:00
parent c8e45097fe
commit 88a396d52f
16 changed files with 424 additions and 237 deletions

View File

@ -15,12 +15,12 @@ int main(int argc, char *argv[]) {
ctx.debug = true;
if (!lm_ctx_pool_add(&ctx, "test", argv[1])) {
if (!lm_ctx_pools_add(&ctx, "test", argv[1])) {
printf("failed to add pool: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
lm_ctx_pool_test(&ctx);
lm_ctx_pools_test(&ctx);
ret = EXIT_SUCCESS;
end:

View File

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