moving files to a right place

This commit is contained in:
tTh 2024-09-10 14:35:26 +02:00
parent 61286736e3
commit f35170113d
3 changed files with 33 additions and 0 deletions

0
code/OSC/README.md Normal file
View File

15
code/OSC/listen-osc.c Normal file
View File

@ -0,0 +1,15 @@
/* LISTEN OSC */
#include <stdio.h>
#include <lo/lo.h>
#define LOCAL_PORT "9000"
int main(int argc, char *argv[])
{
lo_server_thread st;
st = lo_server_thread_new(LOCAL_PORT, NULL);
return 0;
}

18
code/OSC/send-osc.c Normal file
View File

@ -0,0 +1,18 @@
/* 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;
loana = lo_address_new(REMOTE_HOST, REMOTE_PORT);
foo = lo_send(loana, "/dev/kmem", "is", 61, "meg, efface !");
fprintf(stderr, "foo %d\n", foo);
return 0;
}