View code. You need to provide the Host, Port no and username test and password test to connect to the server. Please note that errors are not handled so if you give any wrong details it wont connect to the server. For example: you can type "send" command and click on execute button. We have implemented the following commands: 1 send File upload to the server. Multiple clients can be connected to the server at a time. Each client can execute any command. Scenario 1: Client1 and Client 2 are connected to the server, Client1 can upload a new file during this time client2 cannot delete or receive this file until the file upload completes.
Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. I am trying to write a code that opens an FTP server on my stand-alone so I could copy file from it to a client in another computer and the opposite, but I am very new to server side programming and don't understand how.
I got the Apache FtpServer but got a little confused with it's use, and am looking for the basic steps of how to use it.
Maybe something like:. Note that, server-side, you don't have to deal manually with connects, logins, etc: the Ftplet does that for you. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Asked 9 years, 11 months ago. Active 2 years, 4 months ago. Viewed 36k times. Please note that errors are not handled so if you give any wrong details it wont connect to the server.
For example: you can type "send" command and click on execute button. We have implemented the following commands: 1 send File upload to the server. Multiple clients can be connected to the server at a time. Each client can execute any command. Scenario 1: Client1 and Client 2 are connected to the server, Client1 can upload a new file during this time client2 cannot delete or receive this file until the file upload completes.
Scenario 2: Client1 and Client2 are connected to the server at a time, If client2 downloading a big file from the server and at the same time if the client1 gives a delete command to delete the same file which client2 downloading, there won't be any error.
0コメント