Client-server architecture program for windows

Assignment Help C/C++ Programming
Reference no: EM131444715

You need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and send results to a web server (PHP API).

- The client agent program which will run on Windows must be stable and secure. it must be lightweight, and dose not use too much memory.

- The client agent program must be written in C++ the server side script which will accept the request from client program must be in PHP.

- The client agent program must be a single file (just .EXE), and it's size must be small.
- The client agent program must start automatically when windows start, basically the The client agent program is like a service background process.

- The client agent program must detect if there's a proxy is set in Internet explorer and use that proxy configuration

- most computers on the network are set to use a local proxy, the allowed ports are 80 and 443
- The server side PHP script will store the received data into organised folders. the folders will be created dynamically based on PC name for the PC on which the program agent runs.

=============================

Details:

The main task of the agent program is to keep track on documents files [doc, docx, pdf]. All files with this types will be processed by the program agent.

Task 1, First run

1. On first run of the agent: Agent will search for all doc, docx, pdf files, based on timestamp, ignore any file that is not modified or opened since 30 Day

2. Search locations includes current PC HDD, don't scan system folders. Start by scanning user folder (My documents, Desktop..etc} then move to HDD Partitions {D, E, F..} Including any connected external devices such as USB Flash drives.

3. Calculate a hash for each file (md5)

4. Encrypt each file

5. Add files to queue to be uploaded to the server

6. Upload Files to the server one by one using POST request and include pc name, local & remote ip and file last modified/opened date

7. wait before upload next file: 45 second.

8. when the above process finishes, there's no need to repeat. Start Task 2

Task 2, lifecycle

- After files on Computer has been scanned and processed. Now, the agent will sleep until a specific events occurs.

1. When user creates a document {Doc, docx, PDF}, then copy that document to the queue to be processed and sent to the server.

2. When user insert a USB or any external storage, then the agent will perform Task 1 but only scan the inserted Device.

3. to keep track on files that is already scanned (check if the files modified), the agent must compare the stored hash with the files, if the file hash dose not match the stored hash, that's mean the file has been modified, in this case, add the file to the queue to be uploaded to the server.

Important info:

1. There will no be a GUI, the agent will work in background.

2. There will be two server URLs one as primary and second one as backup.

3. the primary server url is https:// , the backup server is a different url but without ssl.

4. If the agent is unable to reach the server for some reason, then try to upload the data to backup server.

5. if agent is unable to connect to backup server, then try connect to primary server but without https, use http instead.

6. If file upload failed due a timeout (ex; slow internet connection), then try again after 1 hour.

7. if agent are unable to access to both primary and back server then try to connect to server using IP instead of domain, if this fail too, then schedule the files to be uploaded later. the agent must keep try to connect to one of the servers every 1 minute.

8. The agent must able to re-execute itself if it crashed or the process has been terminated for some reason.

9. The agent MUST not require an administrator privileges (This is a must). the agent will run on a windows user which is on a low privileges.

10. the agent must run even if the user logged in with a different windows account.

11. POST Request data must be encoded or encrypted.

Server Side

1. When the PHP script Receive a request, it must analyse it's data and add the file to the correct folder based on PC name

2. create a text file inside each folder that contain the info of the sender PC (local, remote ip, username)

3. create a text file named with same received file name but add this at the end of file name "-info" this will contain last open,modify and create date

Reference no: EM131444715

Questions Cloud

Explain how the concept fits today : Critically examine the concept: define the concept; identify when it was first discussed and what the arguments were for its creation; discuss how the concept then evolved by identifying the arguments for and against it over time and by noting any..
Analysis and recommendations of individual brokerage firm : If a stock is purchased at the beginning of a? year, a single dividend is paid at the end of the year and the stock is sold immediately after the dividend has been received. The published analysis and recommendations of an individual brokerage firm i..
No-arbitrage determination of forward price : By using the information above and applying the Cost-of-Carry Model, verify if there is an arbitrage opportunity. Step (2) In addition, clearly explain and illustrate the arbitrage (“Cash-and-Carry”) strategy and compute the arbitrage profit.
Make a function that will calculate the pressure : Make a function that will calculate the Pressure [psi] given the Specific Gravity, Depth, and the acceleration of gravity. (Pay close attention to your units).
Client-server architecture program for windows : You need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and send results to a web server (PHP API).
Find a parking space : The length of time it takes to find a parking space at 9 A.M. follows a normal distribution with a mean of 4 minutes and a standard deviation of 2 minutes.
Annual coupon interest payments : Assume that today's date is April 15, 2015. Fresh Bakery Inc. bond is an annual-coupon bond. Par value of the bond is $5,000. Calculate annual coupon interest payments. The answer should be calculated to two decimal places Company-Fresh Bakery Price-..
Explain asymptotic distribution : Suppose that An is a random variable that converges in probability to 3. Suppose that Bn is random variable that converges in distribution to a standard normal. What is the asymptotic distribution of AnBn?
Describe patient-care technologies as appropriate to address : Describe patient-care technologies as appropriate to address the needs of a diverse patient population.Analyze data from all relevant sources, including technology, to inform the delivery of care.Define standardized terminology that reflects nursing'..

Reviews

len1444715

3/30/2017 3:08:22 AM

I need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and send results to a web server (PHP API). - The client agent program which will run on Windows must be stable and secure. it must be lightweight, and dose not use too much memory. The client agent program must be written in C++ the server side script which will accept the request from client program must be in PHP. The client agent program must be a single file (just .EXE), and it's size must be small. The client agent program must start automatically when windows start, basically the The client agent program is like a service background process. The client agent program must detect if there's a proxy is set in Internet explorer and use that proxy configuration most computers on the network are set to use a local proxy, the allowed ports are 80 and 443 The server side PHP script will store the received data into organised folders. the folders will be created dynamically based on PC name for the PC on which the program agent runs. Performance and stability is a must

Write a Review

C/C++ Programming Questions & Answers

  What does software provide and how does it make device

Hardware and Software are in many items we use in our daily lives. Name a few items in your house or office that have some sort of hardware and software. Look beyond your computer and other devices used with your computer.

  Write a program using the class as defined

Write a program using` the class as defined below. Put the class definition in a separate header file, and put all the functions' code in a separate Resource file.

  Prompts the user to enter the total number of cookies

7. A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. Write a program that prompts the user to enter the total number of cookies, the number of cookies in a box, and the number of cookie boxes in a container.

  Create your function in c that accepts one input parameter

Create your own function in C that accepts one input parameter and returns a float number. You decide the theme. Provide a screen capture showing the results of testing your code in an online compiler.

  Write a loop that fills a vector

Write a loop that fills a vector V with ten  different  random numbers between 1 and 100. output must actually display the random numbers to get credit.

  Program that incorporates these two functions

Write the program that incorporates these two functions, as described. You will notice that the two functions have very similar statements, so you are doing some repetitive C++ code.

  Write and test a function to calculate the sum of the series

stop accumulating the sum when the term to add or subtract becomes smaller than a given small number(precision) oassed as an argument.

  We can combine assignment statements

We can combine assignment statements, for-loops, and if statements to perform a wide range of tasks with lists. Suppose we have a bookstore with each book defined as follows: Book = namedtuple('Book', 'author title genre year price instock') , wher..

  Implement a queue class whose add and remove

Implement a Queue class whose add and remove methods are synchronized. Supply one thread, called the producer, which keeps inserting strings into the queue as long as there are fewer than 10 elements in it.

  Expressions until the user says

Expressions until the user says he or she wishes to end the program. For a more difficult assignment, enhance your program so that the expression need not be well formed; if it is not well formed, then the user is asked to reenter the expression.

  Investigate the unified modeling language

Investigate the Unified Modeling Language (UML) on the Internet. Briefly describe the development of the latest UML diagrams. Explain how UML differs from the older ways of writing programs in the past. List down the advantages and disadvantages o..

  Problem 1 write program to print the subsequent stars in

problem 1. write program to print the subsequent stars in the screennbspproblem 2. suppose your 1000 is earning

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd