Reading external data (stdin? socket ? pipe?)

Hello guys and girls,

I’m building a small interactive installation, which is mostly audio, but I wanted to add some visuals.
So I decided to go with openFrameworks.

It all runs on Raspberry Pi (raspbian) and it’s pretty simple.

There is a server, which outputs coordinates (to stdout for now) and I need to place a rectangular
based on this coordinate. So I need openFramework somehow to recieve data from this other unix process.

Ideally I would like to run it using pipe “myServer | myOpenFramework”… that would mean that
openFramework needs to do a nonBlocking read from STDIN.

Is it possible to do in openFramework ?

Thank you much in advance,


I used a TCP socket. So problem solved )