[chuck-users] IP address from incoming OSC message?
Michael Heuer
heuermh at gmail.com
Thu Aug 19 00:49:12 EDT 2010
Hello,
Is it possible to determine the IP address of the client sending an
incoming OSC message? There is no documentation on the API of the
OscEvent class.
I'm trying to find a way of dealing with multiple OSC clients that are
sending the same OSC message.
OscRecv incoming;
OscEvent event;
1234 => incoming.port;
incoming.listen();
server.event("/incoming", "f") @=> event;
spork ~ waitForEvent();
fun void waitForEvent()
{
while (true)
{
event => now;
while (event.nextMsg())
{
event.getFloat() => float f;
event.getIPAddress() => string client;
if (client == ...) { }
}
}
}
michael
More information about the chuck-users
mailing list