title: TCP loopback connection vs Unix Domain Socket performance
body: <p>Working on an Android and iOS based application which require communication with a server running in the same device. Currently using TCP loopback connection for communicating with App and Server (App written in user layer, server written in C++ using Android NDK)</p>
  
  <p>I was wondering if replacing inter communication with Unix Domain socket would improve the performance?</p>
  
  <p>Or in-general is there any evidence/theory that proves that Unix Domain socket would give better performance then TCP loopback connection?</p>