I believe this is what I call a wrap for this thread. Everything hasn't been tested "to the extreme" but many improvements have been made over the code. It can call scripts and handle any exceptions they may raise that previously would have crashed the applet. It works well enough to send/receive push notifications in a timely manner, and handles errors gracefully. That was my intent. I hope this project satisfies your intents as well.
The maximum amount of remote connections to the server has been reduced to 16. The buffers are set to handle what the code expects, and the client will standby for no longer than one second before "giving up" on notifying the server. The server itself will not wait any longer than 8 10ths of a second while communicating with a client.
You will find attached to this post a zip file containing: A windows batch file for executing a server test. A Unix shell script for executing a server test. An HTML file for testing in your browser either locally or hosted from a server, a compiled and signed Java Archive for demonstration and the full WORKING source code (some assembly required.)
Suggested Improvements:
- Multiple network interface handling for the client
- Multiple network interface handling for the server
- Anything you can innovate through hard work and determination
The author of this project assumes no liability and grants you the rights to do anything with this code other than apply for a patent or copyright based on this software or concept.
webtools.test.zip