This is the Arduino Yun code that was used at the 2014 Makers Faire. It uses YunServer and YunClient to connect by TCP over Sockets with its Android control App.