in pmy project i am going to implement socket programming for file sending..using serversocket suppose my connection is lost while sending file.how can we get remaining date without resending all data.
please suggest me
Judge a man by his questions rather than his answers --Voltaire
SCJP 1.5 97%
TCP uses a sequence number to keep track of packets. You could split your data into packets and manage them in a similar fashion. HTTP supports Byte Serving where a client can request portions of a document. You could keep track of how much data you've received and request only what you haven't In either case, you are going to have to write a protocol that lets you track data as it is received and request data you have not.