I have knocked together this basic socket server (raw sockets NOT HTTP). I have attached the project. I understand that there is not Class_dispose (yet), so my question is when a socket client is finished talking and is terminated I need to dispose of the class instance. Please have a look and let me know if what I am doing is correct, and if not please advice on better method.
You don't need to dispose the class instance. It will be released automatically when there are no references to the instance.
1. The terminate_connection sub doesn't do anything useful.
2. AStream.Write will never throw an error. If there is an error writing then the Error event will be raised.