I am developing an application for android where i need to communicate from server and i did that with the help of socket programming, now i need to find Packet Loss in my connection, so is there any API or any way to find Packet Loss in socket programming.
I am attaching my code snippet where client received message from server.
I've been researching about socket programming, and I have to say I dont have any experience on it. I've been able to study the server/client communication on a Cortex M4 microcontroller, and now I want it to communicate to a Linux computer through an IP socket.
I've seen many examples on socket programming on the internet.