I have written client/server progs to transfer files . Through this program, I am now able to transfer files larger than 1 MB from my machine to any remote machine where the client program is running without any problem..
The other requirement of the program is to read a file that exists in hte remote machine.. I have used the same concept even for that code and i have traced it many times to find any pit-falls, but I am not able to transfer files greater than 5000 bytes without the data being curropted..
I also noted these things..
1 . the data in the packets that is being sent from hte remote machine is valid, thats not the case after I receive them here for the final few packets
2. also, the numbers returned by send() and recv() match for a large number of packets sent , the mismatch occurs in the last few packets..
By curropted ,I mean some sections of the file getting repeated right at the end , or after the actual file has been transfered, a part of the file also gets added.
The lan is a standard one, I can do my usual ftp and telnet stuff.
I cud have posted the code , but its quite bulky..
Has anyone faced this problem before, please help