I need this to work on Linux CentOS and Linux Debian. This application must be coded in the most efficient manner possible, speed is everything here. The application must connect to a remote server and send a single string request every 0.2 seconds for the whole day - thats 432,000 requests in a 24 hour period.
The remote server will be continually sending status updates down to my server, not necessarily in time with my requests being sent to it - each string of data the remote server sends to me needs to be parsed and if a particular letter is found at the end of the string, the requests must stop but more important than that - an email must be sent to a designated email address, just 5 times in as short time as possible.
There is a way to make emails appear at the front of the mail queue on a receiving server, if you know how to do this then we will have to use that tactic and send just the one email on the basis it will be in front of the queue, so we won't need to slam the server with 5 emails. However if you dont know much, we have to make sure our email gets there in the quickest possible time.
The email recipient, sender and subject will never change. The message body will have to be included from a txt file in the same directory as this changes every day.
I think the trick in getting emails sent fast and ahead of queues is something to do with envelope processing, but I am unsure, please do your research or let me know if you know the trick, the receiving server runs ESMTP Sendmail.
You will also have to create a duplicate of this script with the only difference being that instead of sending an email, it will initiate connection via EPP to a server and again send details down the socket in the quickest and most efficient manner possible.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).