Le mercredi 27 avril 2011 à 12:11 +0000, Ajit a écrit :
Guys,
I have developed a code which uses raw sockets to transfer files. My code skips
all the upper layer protocols,I have designed a small protocol of my own.
Now to problem is, whenever I transfer a large file it creates a problem. If
transfer a file of suppose 100kb or more, only 97.9 Kb is received, unlike in
the case of files smaller that 97.9.
What can be the problem ?? Does continuously sending and receiving of frames
creates a problem ??
Sure, check your syscall returns values, and search for SO_RCVBUF &
SO_SNDBUF (man 7 socket)