There's more...
That was just a short example of the possibilities that OSC offers. This simple communication method can be applied even in very complex projects. OSC works great when several devices are working as independent units. But at some point, data coming from them is processed; for example, frames coming from the camera can be processed by the computer vision software and results sent over the network to another machine projecting the visualization. Implementation on top of the UDP protocol gives not only performance, because of the fact that transmitting data is faster than using TCP, but also implementation is much simpler without a connection handshake.
Broadcast
You can send OSC messages to all the hosts on your network by setting a broadcast address as a destination host: 255.255.255.255
. For example, in case of subnets, you can use 192.168.1.255
.
Tip
If you have problems with compilation under Mac OS X 10.7 because of a linker error, try to set Inline Methods Hidden to No in...