to transfer files through java socket
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abdul_Kareem
Posted On:   Thursday, May 29, 2003 06:50 AM

how to transfer multiple files from client to server using java socket

Re: to transfer files through java socket

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, May 29, 2003 08:20 AM

If you mean a TCP socket (I think there's no such thing as a "java socket"; in Java you can implement TCP sockets), then I think you need some additional application layer protocol, to agree on the start and end of files, the filenames, etc. Perhaps send one file at a time, with acknowledgement in between.



Perhaps look at "TFTP" (Trivial File Transfer Protocol), which is designed for that very purpose?



Or, assume that the sender will make a ZIP archive, and just send that, so the rest is taken care of? (filenames, start and end of individual files, etc.)

About | Sitemap | Contact