Skip to content Skip to sidebar Skip to footer

Is There Any Library To Manage Tcp Packets On Android?

I am trying to make connection between my Python3 local LAN server script and my Android device. While testing i am using Android Virtual Device Manager. Main target is to keep con

Solution 1:

Volley is a very good library for making asynchronous HTTP requests on Android.

Kryonet is another very good Java network library for sending TCP and UDP packets over network efficiently which runs on Android as well. Though whenever I used Kryonet, I wrote both the server side code and client side code using this library. Kryonet keeps the connection alive though, so if you don't have any issues changing your server side code from Python to Java (Kryonet has samples which you can use), then it will serve your purpose well. Using this library, you don't even need to hardcode any IP address. You can discover the local server in real time with just one line of code.

Post a Comment for "Is There Any Library To Manage Tcp Packets On Android?"