Thanks that looks nice I jus had to add .asString, for some reason the message comes in as Symbol apparently. However, although the parsing is done properly and splitting and assigning to key value pairs, there is something strange, my original message looks like this:
26962 17756.256810 162.125.18.133 → 192.168.1.108 TCP 66 443 → 54732 [ACK] Seq=18054 Ack=60158 Win=184320 Len=0 TSval=1286108705 TSecr=421110892
Then parsing with this:
(
OSCdef(\tsharky, {|msg|
~dict = msg.asString.split($=).collect(_.split($ )).flatten(1).asDict;
~dict.keysValuesDo{|key, value| [key, value].postln};
}, '/tsharky');
)
-> [ 5296, Ack ] etc. //seems twisted the other way around instead the key is positioned as value.
When I try to get with ~
dict.at(\Ack) -> nil
So is there something in the parsing or the iteration function that messes the IdentityDictionary?
K.