[OSC_dev] handling nil/inf in oscpack
grahamwakefield
lists at grahamwakefield.net
Tue Mar 25 13:03:57 PDT 2008
Hi,
I'm writing a generic OSC-service for the Lua language, based on oscpack.
All is working wonderfully, except that I'm stuck on how to iterate past
Nil/Infinitum types in received message streams.
I'm not sure how to increment the ReceivedMessageArgumentStream pointer for
N and I types. In the source, there's a comment:
// not sure if it would be useful to stream Nil and Infinitum
// for now it's not possible
So my question: if there's a Nil or Infinitum embedded within a message
stream (e.g., type tags = "iNi"), how can I iterate past the Nil/Infinitum
and get the next argument? For T and F, I can use the >> operator to move to
the next argument, but there isn't an equivalent for N or I. Is there
another way to increment the stream?
Thanks,
Graham
Example:
send("test", 3, nil, 3)
->
received address:"test:
received types: "iNi"
received arg 1: 3
received arg 2: nil
terminate called after throwing an instance of
'osc::WrongArgumentTypeException'
--
View this message in context: http://www.nabble.com/handling-nil-inf-in-oscpack-tp16287337p16287337.html
Sent from the OpenSound Control (OSC) - Dev mailing list archive at Nabble.com.
More information about the OSC_dev
mailing list