How to use socket in Android NDK?

How to use socket in Android NDK?
0.0 0


I want to develop a net game with socket,
but I don’t know how to use socket in ndk:(

Or maybe I can use socket in android sdk,and transmit the data to game logic with jni?

Which is better….?:frowning:

What should I do?


I’m very certain that socket is suppported on NDK.
You can search android-ndk google group for more info


Or try to use boost::asio


socketcc is your best choice.
i had been build it base on iphone and Android.


yeah add socketcc in your project, you can get what you want! :slight_smile: