moving files to a right place
This commit is contained in:
parent
61286736e3
commit
f35170113d
0
code/OSC/README.md
Normal file
0
code/OSC/README.md
Normal file
15
code/OSC/listen-osc.c
Normal file
15
code/OSC/listen-osc.c
Normal 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
18
code/OSC/send-osc.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user