From f35170113d1ac448fc79d54b1124b9dbb80fc0f5 Mon Sep 17 00:00:00 2001 From: tTh Date: Tue, 10 Sep 2024 14:35:26 +0200 Subject: [PATCH] moving files to a right place --- code/OSC/README.md | 0 code/OSC/listen-osc.c | 15 +++++++++++++++ code/OSC/send-osc.c | 18 ++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 code/OSC/README.md create mode 100644 code/OSC/listen-osc.c create mode 100644 code/OSC/send-osc.c diff --git a/code/OSC/README.md b/code/OSC/README.md new file mode 100644 index 0000000..e69de29 diff --git a/code/OSC/listen-osc.c b/code/OSC/listen-osc.c new file mode 100644 index 0000000..f142ded --- /dev/null +++ b/code/OSC/listen-osc.c @@ -0,0 +1,15 @@ +/* LISTEN OSC */ + +#include +#include + +#define LOCAL_PORT "9000" + +int main(int argc, char *argv[]) +{ +lo_server_thread st; + +st = lo_server_thread_new(LOCAL_PORT, NULL); + +return 0; +} diff --git a/code/OSC/send-osc.c b/code/OSC/send-osc.c new file mode 100644 index 0000000..0968036 --- /dev/null +++ b/code/OSC/send-osc.c @@ -0,0 +1,18 @@ +/* SEND OSC */ + +#include +#include + +#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; +}