title: checksum code in client server communication
body: <p>I have written a code to send a TCP packet and receive acknowledgement packet.          </p>
  
  <p>I want to implement checksum in the code to check data consistency but failed to write the code(in C language) for checking the data consistency.</p>
  
  <p>Please give me the code.</p>