Hi all,
I'm trying to restart a liblo thread with the same port, but something
seems to being kept hold of, as it fails (this may be intentional though).
I have a test case here - am I being daft, or should this work:
---8<---
#include <stdio.h>
#include <lo/lo.h>
void handler(int num, const char *msg, const char *path)
{
printf("liblo server error %d\n",num);
}
int main()
{
printf("once\n");
lo_server_thread thr = lo_server_thread_new("4444",handler);
lo_server_thread_start(thr);
lo_server_thread_stop(thr);
lo_server_thread_free(thr);
printf("twice\n");
thr = lo_server_thread_new("4444",handler);
}
--->8---
I get the output:
once
twice
liblo server error 9904
cheers,
dave