I have a DatagramClient class and DatagramServer class.
DatagramClient send 1 byte of data using UDP
DatagramServer receives and resend the packet back to the client as echo service
When DatagramClient receive the packet, how can I write a checksum to check if the packet is duplicated one? And how can I add the checksum to the packet?