Ajit Kumar wrote:
> David, do you have an example for the java code for dalvik vm. Do you
> use java.net.Socket/ServerSocket or
> android.net.LocalSocket/LocalServerSocket?
Sorry, I should have been clearer: both sides of our code are native, so
we're not using Java. I have used androdi.net.LocalSocket in the past
but don't have any code handy, sorry.
(You have to use android.net.LocalSocket as java.net.Socket doesn't
support Unix domain sockets. However... there's nothing to stop you
connecting to localhost if you prefer to use Socket: it's marginally
less efficient than a Unix domain socket, but only very slightly.)
--
┌─── dg@cowlark.com ─────
http://www.cowlark.com ─────
│ "There is nothing in the world so dangerous --- and I mean *nothing*
│ --- as a children's story that happens to be true." --- Master Li Kao,
│ _The Bridge of Birds_