I have a program that sends files between 2 computers. I'm using winsock to send the files using the send function. The program works great for small files. But when I try sending large files, they become corrupted. Can anyone tell me why is this happening and how to send large files over TCP without corrupting them?