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

  One or more consecutive white spaces is a delimiter

Write a function which will determine how many words are in a given string. assume that one or more consecutive white spaces is a delimiter between words.

  Code to implement a staque

Write a C++ code to implement a Staque. Since the data structure is all about inserting and deleting numbers, it would be a good option to use a linked list to implement Staque.

  What does the given code print

What does the following code print: char* s1 = "ABCDE"; char* s2 = "ABCE"; if (strcmp(s1,s2) endl; else cout = " endl.

  Program that allows the user to enter the last names

The program should then output each candidate's name, the number of votes received, and the percentage of the total votes received by the candidate.

  Authentication method for android

For the fourth program under Connector for Pi to be able to (Connect between File Handle and Client+Server socket program).

  Create a class named order that performs order processing

Create a class named Order that performs order processing of a single item. Create a subclass named ShippedOrder that overrides computePrice() by adding a shipping and handling charge of $4.00

  Dq development of training.

What are some of the different factors that we should consider when designing a training program? Discuss how user documentation can be used in the development of training. What other factors, such as organizational constraints, should we consider..

  A temperature control system consists of four thermostats

A temperature control system consists of four thermostats controlling three heating units. The thermostat contacts are set to close at 50°, 60°, 70°, and 80°F, respectively. The PLC ladder logic program is to be designed so that at a temperature belo..

  Heights of the individual pupils

Make a C++ program that helps the health visitor making the statistics and heights of the individual pupils,

  Prepare a c program to read in a word from a user

Prepare a C program to read in a word from a user and check if that word is a palindrome :a word, phrase, or sequence that reads the same backward as forward.

  Write a program that uses recursion to determine one age

Write a program that uses recursion to determine one's age. The user will enter the current year and the year they were born (birth year) from the keyboard. The program will output the current age of the user. Check positive and zero cases only.

  Each person in your team will complete one sequence

each person in your team will complete one sequence problem problem 1 or 2. one selection problem problems 3 4 or

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