I've created a socket connection in c between my Raspberry Pi and another device where the Pi is the client.
Is there anyway to handle TCP flags in the packets received from the server?
In particular, I want certain code to execute if the response has a FIN flag.