[android-developers] Re: App talking to native ARM binary via sockets

2012-06-07 Thread Mika
This might help you http://stackoverflow.com/questions/7516018/android-localserversocket -Mika On Jun 7, 4:45 am, galapogos wrote: > Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked > too. > > I would also like to use unix domain sockets, since I really only want the > 2

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread galapogos
Thanks. Seems like 127.0.0.1 works. I also tried 0.0.0.0 and that worked too. I would also like to use unix domain sockets, since I really only want the 2 processes talking to each other rather than any external devices talking to my device. However, when I change AF_INET to AF_UNIX in the sock

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread Chris Stratton
On Jun 6, 8:34 am, Tony Houghton wrote: > 10.0.2.2 is a special address so that apps in an emulator can connect to > services on the host running the emulator. AIUI your service is running > on the same Android device as the client so I think you want 127.0.0.1. Yes. Not only is the special add

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread JP
> so I think you want 127.0.0.1. That'll work as well; 127.0.0.0 to 127.0.0.255 should -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread JP
I've done this the other direction only, native to Dalvik. Difficult to say much with what you've provided, and in principle. At any rate, one thing of note is the server address 10.0.2.2 that you use. I use localhost, to remove any uncertainty about where the network address might be known, or not

[android-developers] Re: App talking to native ARM binary via sockets

2012-06-06 Thread galapogos
I managed to find some sample code for a simple unix server over at http://www.tutorialspoint.com/unix_sockets/socket_server_example.htm and cross compiled and run it in my rooted device. However, my client app doesn't seem to be sending anything to the server. Is there something I'm doing wron