You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the oscsendfile tool, to support new oscdump output (keeping support for old format):
diff --git a/src/tools/oscsendfile.c b/src/tools/oscsendfile.c
index 9353fea..b343d13 100644
--- a/src/tools/oscsendfile.c
+++ b/src/tools/oscsendfile.c
@@ -213,15 +213,19 @@ lo_message create_message(char **argv)
}
case LO_TRUE:
lo_message_add_true(message);
+ argi++;
break;
case LO_FALSE:
lo_message_add_false(message);
+ argi++;
break;
case LO_NIL:
lo_message_add_nil(message);
+ argi++;
break;
case LO_INFINITUM:
lo_message_add_infinitum(message);
+ argi++;
break;
default:
fprintf(stderr, "Type '%c' is not supported or invalid.\n",
@@ -326,6 +330,11 @@ int send_file(lo_address target, double speed) {
tt_this->frac = 1;
}
}
+
+ //skip ip:port column (if present)
+ if (s && s[0] != '/')
+ s = strtok_r(0, delim, &p);
+
if (s)
path = s;
else
Please note: the inserted argi++ are necessary to support more typetag variants.
With the current implementation, a message /hi iFf 42 .42 shows the error (interleaved non-value type).
Best regards
The text was updated successfully, but these errors were encountered:
7890
changed the title
oscdump doesn't show origin of messages
oscdump doesn't show origin of messages. + oscsendfile doesn't handle some typetag variants correctly.
Dec 24, 2020
malloch
added a commit
to malloch/liblo
that referenced
this issue
Nov 8, 2024
When using
oscdump
something I missed is to see where the messages are coming from.The following patch adds
IPAddress:Port
to every dump line right after the timetag.For the
oscsendfile
tool, to support new oscdump output (keeping support for old format):Please note: the inserted
argi++
are necessary to support more typetag variants.With the current implementation, a message
/hi iFf 42 .42
shows the error (interleaved non-value type).Best regards
The text was updated successfully, but these errors were encountered: