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

  Determine the average number of probes that each search algo

Determine the average number of probes that each search algorithm took. Do these values represent the theoretical values? Print out the averages for the two searches and their theoretical values.

  Hypothetical method lock over an object lock

Imagine a hypothetical version of Java where the object lock is replaced by a method lock. Under this system a call to a synchronised method would assign a lock for that method to the calling thread.

  Show that regularity is preserved under the shift operation

Show that the regularity is preserved under the shift operation - I have the answer already but i do not understand

  How can it has a output

I wonder what is the field "out" use for? Instructors comment it "// stream where Target will prints its output". Target is not a function, how can it has a output? I also confused about "std::ostream &out = std::cout", don't understand what is it..

  Computer programming

Computer programming

  Problem regarding the database systems

To develop a database for the given case study by drawing the EER diagram-To apply the normalization rules to the data structures and hence to show the UNF, INF, 2NF, and 3NF relations of the given scenario-To create and manipulate database.

  What is output from the following segment of code

What is output from the following segment of code? (note: this is a code segment, not a complete program.) What is output from the following code segment

  Write a c program that multiplies user entered number

Write a C program that multiplies user entered number till product of these numbers reach 1000. Which means the number that is entered multiplies itself until it reaches 1000.

  Assignment in c you will write a program that draws a

assignment in c you will write a program that draws a single level for a rogueshylike computer game. the program will

  Implementation of a user-defined class

For this assignment you will complete the implementation of a user-defined C++ class to represent arithmetic expressions. The interface of the class is shown below

  Find answers of c programming questions

1. int main(void){ int height 3. 5; int width = 25: if(height == 5 && width == 25){printf("the height and width are correct: "); }return 0; }Assuming all libraries are included, what is the result of the code above when run?

  Which of the given functions has a constant growth rate

Which of the following functions has a constant growth rate? What is the output in the statement cout

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