title: Is there any library to manage TCP packets on Android?
body: <p>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 connection between server and clients for a long time (1 hour).</p>
  
  <p>Is there any good library to send and receive packets for an Android and to make things easier? Phone must work as a client which can send and receive data from server.</p>
  
  <p>P.S. Im targeting API 15.</p>
  
  <p>I only managed to send packets to Python and print them in console. I was using PrintWriter class to send data and java.net.Socket class to open a socket. Tried to read incoming data but there was a lot of errors.</p>