The best way to do it is to use the libiio. Here are some links to libiio documentation:
http://wiki.analog.com/resources/tools-software/linux-software/libiio?s[]=libiio
Examples on how to use the libiio on the client side can be found here:
https://github.com/analogdevicesinc/libiio/tree/master/examples
The Linux image runs by default the libiio server as a daemon so everything is already set up on the server side.
Hope this helps,
Andrei