In android, there are two classes LocalServerSocket and LocalSocket. I think they are something like AF_LOCAL in unix socket (I am not sure it is correct or not).
My que
Thanks for the answers here. Piecing people's responses together, the things to be careful about are
On the native side:
sockaddr_len
and Android sets this per the recommended file-system sockets of sizeof(sa_family_t) + strlen(sun_path) + 1
. This is important when making calls to bind, connect, etc!On the Java side:
Android defines the conventions it uses under the covers but are consistent with above.