I have implemented one TCP client-server module in C which process certain data. each server and client checking CRC32 value of packet before proceeding further. Here client and server running my PC and both are using same CRC algorithm.
Now one more 3rd party client connected to my server and sending data, but my server code failed to process data by rejecting that packet at CRC check step. CRC seems ok in this packet but what I see that 3rd party client uses input data as HEX to calculate CRC and our server uses CRC algorithm by considering input data as ASCII value. That's why i think it failed to process at server side as at both side different CRC value calculated base on what method followed.
So my question is that how to make general mechanism to handle all kind of client(no matter what CRC32 method followed)?
or is this type case possible in real time scenario?