--To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/O3LiHsnmtpQJ.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
LocalSocket(AF_UNIX) sockets are file sockets, of course there is possible to communicate between this two(either if one is in c and one is in java) proviede that both both socket must be in same process.
We're using Unix sockets to communicate between two processes (one side
is a Dalvik VM, the other is a daemon process started with fork), and it
all works fine.
However, bear in mind that a Java LocalSocketAddress actually refers to
an abstract socket address, not a filesystem one --- from the C side,
the first byte of the address must be a \0. See the man page.
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "Parents let children ride bicycles on the street. But parents do not
│ allow children to hear vulgar words. Therefore we can deduce that
│ cursing is more dangerous than being hit by a car." --- Scott Adams