I am testing my program on localhost and when i want to send from client to server file for example jpg and i want to split data to 100byte fragments with my header after my 548. fragment something get wrong like this. Server prints what is receive.
RECEIVED: 43749 | 1 | 546 | 1176 | jpg
RECEIVED: 60251 | 1 | 547 | 1176 | jpg
RECEIVED: 53346 | 1 | 548 | 1176 | jpg
RECEIVED: 55018 | 1 | 737 | 1176 | jpg
first is checksum second number of message third number of fragment fourth maximum of fragments and last file type. to this point everything is sening correctly smaller files also. What can be wrong any ideas please?