
New version with bug fixes and improvements can be found at:
https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=44590&lngWId=1
With this it is easy to run multiple instances of a client or server. It is an API only winsock wrapper setup as an active X dll. There is also a sample application from where you can open multiple servers and clients which can communicate which each other.
This code will also show you how to Subclass without a form. (actually the form is generated by code)
Updated on Oct 21 : Cleaned up the code (variable names, removed unused code, added remarks) and fixed some minor bug's.