title: LocalSocket communication with Unix Domain in Android NDK
body: <p>I have Android application, which needs to establish unix domain socket connection with 
  our C++ library (using Android NDK)</p>
  
  <pre><code>public static String SOCKET_ADDRESS = "your.local.socket.address"; // STRING
  </code></pre>
  
  <p>There is LocalSocket in java which accepts "string" (your.local.socket.address)</p>
  
  <pre><code>#define ADDRESS     "/tmp/unix.str" /* ABSOLUTE PATH */
    struct sockaddr_un saun, fsaun;
      if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) &lt; 0) {
          perror("server: socket");
          exit(1);
      }
      saun.sun_family = AF_UNIX;
      strcpy(saun.sun_path, ADDRESS);
  </code></pre>
  
  <p>But the unix domain socket which is at native layer accepts "absolute path". So how can these two parties communicate to each other?</p>
  
  <p>Please share any example if possible</p>