24 const char testdata[6] =
"ABCDE";
26 int main(
int argc,
char *argv[])
36 if (argc > 1 && argv[1][0] ==
'-' && argv[1][1] ==
'q') {
38 if (
lo_send(t,
"/quit", NULL) == -1) {
45 if (
lo_send(t,
"/foo/bar",
"ff", 0.12345678f, 23.0f) == -1) {
53 lo_send(t,
"/f*/bar",
"ff", 0.12345678f, 34.0f);
56 lo_send(t,
"/foo/b*",
"ff", 0.12345678f, 56.0f);
59 lo_send(t,
"/f*",
"ff", 0.12345678f, 78.0f);
63 lo_send(t,
"/a/b/c/d",
"sfsff",
"one", 0.12345678f,
"three",
64 -0.00000023001f, 1.0);
67 lo_send(t,
"/a/b/c/d",
"b", btest);
70 lo_send(t,
"/blobtest",
"b", btest);
76 lo_send(t,
"/jamin/scene",
"i", 2);
int lo_address_errno(lo_address a)
Return the error number from the last failed lo_send() or lo_address_new() call.
const char * lo_address_errstr(lo_address a)
Return the error string from the last failed lo_send() or lo_address_new() call.
lo_address lo_address_new(const char *host, const char *port)
Declare an OSC destination, given IP address and port number. Same as lo_address_new_with_proto(),...
int lo_send(lo_address targ, const char *path, const char *type,...)
Send a OSC formatted message to the address specified.
lo_blob lo_blob_new(int32_t size, const void *data)
Create a new OSC blob type.
struct lo_address_ * lo_address
A reference to an OSC service.
struct lo_blob_ * lo_blob
A object to store an opaque binary data object.