FTP client(repost)

Terminé Publié le Aug 28, 2009 Paiement à la livraison
Terminé Paiement à la livraison

I require an FTP client to keep two directories syncronized, a? local directory and a? server directory. I require? C or C++ source code that will compile and run on “Windows Visual C++ 2008 Express Edition?? as a console application.? Although it is not necessary I would prefer that the code be written using ordinary wininet function such as InternetOpen and FtpPutFile, etc..

## Deliverables

FTP Client Specification:

I require C or C++ source code that will compile and run on “Windows Visual C++ 2008 Express Edition?? as a console application.? Although it is not necessary I would prefer that the code be written using ordinary wininet function such as InternetOpen and FtpPutFile, etc..

SPECIFICATION:

SYNTAX:

[url removed, login to view] <statusBox> <verboseLevel> <milliSec> <seconds1> ? <ftpServer> <serverPort> ? <loginName> <password> <serverDirectory1> <localDirectory1> <localDirectory2> <serverDirectory2> <testFileName> <serverFileExamine> <accountNumber>

EXAMPLE 1: An example of the invocation of the program would be:

[url removed, login to view] 1 0 250 3600 ? [[url removed, login to view]][1] 2021 accName myPass /serverDir/dataDir C:\someDataDir1 C:\someOtherDir2\localHere2 /serverDir2/serverThere2 C:\someDirectory\[url removed, login to view] /someSeverDir3/[url removed, login to view] 1234567

? FUNCTIONALITY 1:

The above invocation of the command “[url removed, login to view]? will result in the following:

1. At 0 <verboseLevel> the system will have no output to the screen or to any data file for logging.? At 1 <verboseLevel> the file can write to the screen.? There is no need to be worried about what is written.

2. The system will log into [[url removed, login to view]][1] (ftpServer) and remain logged in until the local file C:\someDirectory\[url removed, login to view] (testFileName) ceases to exist OR until the last modification time of the file is over 30 minutes. The checking of the testFileName will occur about every 250 (miliSec) milliseconds and does not have to happen at exactly 250 milliSec.? When testFileName no longer exists or the modification time is out of date then the client will shut itself down.? The login will be made to the server on port 2021 (serverPort) using accName (loginName) and password mypass (password).? If the connection fails attempt to reconnect instantly then wait 2 seconds for every attempt to reconnect.

3. The system will check to see if the system can proceed because the command was issued with a valid account number (accountNumber), in our example 1234567, that appears in a file (serverFileExamine) on the ftp server, in our example “/someSeverDir3/[url removed, login to view]?.? The serverFileExamine contains a list of long integers separated by new lines that represent allowable account numbers. ? If the system does not find the account number in the file on the server it will produce an error file. The error file name will be built from the account number (accountNumber) given to the system in the command line arguments and the word “error_?? like, “[url removed, login to view]? with the error message in the file that includes the date and time of the error.? The error file will be placed in the directory C:\someDataDir1 (localDirectory1) as in “C:\someDataDir1\[url removed, login to view]? and the system will exit and cease execution.

4. IF THE SYSTEM can proceed because it has a valid account number then the system will delete any existing error file if it exists. (i.e. delete “C:\someDataDir1\[url removed, login to view]?) This file should have been deleted before the valid account number is checked.

5. Every 250 (milliSec1) milliseconds the system will get a list of directories that exist under /serverDir/dataDir ? (serverDirectory1), ignoring the directory /serverDir2/serverThere2 (serverDirectory2), and for each of the other directories the system will look to see if there are any files on the server in that directory that do not already exist in C:\someDataDir1 (localDirectory1) and if there are files in the servers subdirectories that do not exists in localDirectory1 then the system will copy the non-existing files to localDirectory1 AND the system will DELETE any files from localDirectory1 that no longer appear on the server within the subdirectories examined.? The system WILL NOT create subdirectories in the local file system, it will only copy files from the server and delete any local files that are no longer present on the server.

6. immediately after the server starts and then after the passage of every 3600 (seconds1) seconds the system will locate all files in the directory C:\someOtherDir2\localHere2 (localDirectory2) that have the prefix file name of? “1234567_?? (accountNumber_) and upload these files to ? /serverDir2/serverThere2 (serverDirectory2). For each file that is successfully uploaded, the system will delete the file from the local server from the localDirectory2.? Example the system finds file: “C:\someOtherDir2\localHere2\[url removed, login to view]?

the system uploads the file to the ftp server:

? /serverDir2/serverThere2

then the system deletes the local copy:

“C:\someOtherDir2\localHere2\[url removed, login to view]?

7.? When? statusBox is set? to 1, as in this example, ? I would like a pop up box to appear in windows that enables you to shut down the server and displays if the server is running and if an error file is generated with the error message to appear in the box.? The status box should be able to be minimize.? If status box is set to zero, then no popup is given.

END specification.

Programmation C Ingénierie Microsoft MySQL PHP Gestion de Projet Architecture Logicielle Tests de Logiciels Bureau Windows

Nº du projet : #2855871

À propos du projet

7 propositions Projet à distance Actif Aug 28, 2009

Décerné à:

staticman

See private message.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 7 jours
(24 Commentaires)
3.6

7 freelances font une offre moyenne de 61 $ pour ce travail

vw6868760vw

See private message.

$85 USD en 7 jours
(53 Commentaires)
5.6
dviravnoon

See private message.

$42.5 USD en 7 jours
(9 Commentaires)
4.2
StrongDecs

See private message.

$34 USD en 7 jours
(16 Commentaires)
3.0
aparnasinger

See private message.

$85 USD en 7 jours
(10 Commentaires)
2.7
germini08

See private message.

$72.25 USD en 7 jours
(6 Commentaires)
2.1
VijayGurunanee

See private message.

$42.5 USD en 7 jours
(0 Commentaires)
0.0