Data manipulation using C and threads
$100-250 USD
Paid on delivery
1) Script should be written entirely in C or C++ and run under Linux shell. It must use threads and connect to feed in fastest posible way (socket) 2) It will be executed from PHP via system() or passthru() command, with 2 parameters: KEYWORD and IP_ADDRESS 3) Script should look for file KEYWORD. If file exists it must read its contents For example: if keyword is "lcd tv" than file "lcd tv" will look like: "best lcd#cheap lcd#panasonic lcd#sony lcd" Now using threads for each of above keywords (separated by "#") AND for main keyword script should connect to: [url removed, login to view] (i.e. [url removed, login to view]) This will return feed, with different information separated by "|"and new lines ("\n"). For each line elements are (as they would appear in array) 0) Result_number 1) Title 2) Description 3) Website_url 4) url where click should be sent 5) Bid You must then sort all results by highest bid descending. Result_number value must be unique (i.e.: I don't want 5 first results to be #1 results from each of the keywords) Final feed with best paid keywords should be printed to STDIO in exacly the same format as feed from feed.peakclick.com. That's basic idea how it should work. I'd like to have 2 additional possibilities in constructing feed 1) If file KEYWORD has more than X keywords separated by "#" I must be able to limit for how many of them we construct feed and make threads (if there will be 10 keywords, it may use too much resources to generate feed, so I'd like to limit if globally to first Y elements 2) If file KEYWORD does not exists we get feed for original keyword and print it. We also log non existant file to specifed directory (ie /home0/htdocs/domain/[url removed, login to view])
## Deliverables
Script should be delivered by email as a source code. After delivery i'll compile it, and run it in live environment. If all will be working, there will be no segmentation faults or other errors i'll finish job.
## Platform
Must run on Redhat 3 Enterprise Edition
Project ID: #3559669