TetaTricks/code/OSC/send-osc.c

20 lines
419 B
C
Raw Normal View History

2024-09-10 23:35:26 +11:00
/* SEND OSC */
#include <stdio.h>
#include <lo/lo.h>
#define REMOTE_HOST "localhost"
#define REMOTE_PORT "9000"
int main(int argc, char *argv[])
{
lo_address loana;
int foo;
2024-09-24 05:53:00 +11:00
fprintf(stderr, "sending to %s:%s\n", REMOTE_HOST, REMOTE_PORT);
2024-09-10 23:35:26 +11:00
loana = lo_address_new(REMOTE_HOST, REMOTE_PORT);
2024-09-24 05:53:00 +11:00
foo = lo_send(loana, "/demo", "is", 61, "meg, efface !");
fprintf(stderr, "got a %d return code ?\n", foo);
2024-09-10 23:35:26 +11:00
return 0;
}