Posted on 2011-03-24
on Server.c from line 115 to 126, how can know it finishes reading all trunk of the file? do I check the return of receiveMessage() to determine it? tks.
>>the message 2 gives filesize.
I thought about reading enough until reach filesize. however, i got stuck last night because my receivMessage return the the data string of file content only . hihi. So thought It couldn't return the filesize.
So from the message2, it return filsize. So I need a loop to read until it reach to the filesize. Am i right? let me work on it now. tks.