Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

program to transfer files from one server to another and displaying progress bar for each transfer

 
trisha mehta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written a java code to transfer files from one server to another using the concept of socket programming. now in the same code i also want to check for the network connection availability before each file is transferred. i also want that the files transferred should be transferred according to their numerical sequence. And while the files are being transferred the transfer progress of each file i.e the progress percentage bar should also be visible on the screen.

i will really appreciate if someone can help me with the code. i am posting the code i have written for file transfer.

(ClientMain.java)


(DirectoryTxr.java)


(ServerMain.java)


(DirectoryRcr.java)


1. ClientMain.java and DirectoryTxr.java are the two classes under client application. ServerMain.java and DirectoryRcr.java are the two classes under Server application.
2. run the ClientMain.java and ServerMain.java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic