VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing)

by Edwin Vermeer. (11 Submissions)
Category: Libraries
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

A newer version is located at:
https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=62794&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. The bennefit of this is that it uses very litle memory (compared to the inet control), it's very fast, you do not need a form and its very easy to create multiple instances. I tested it with 4 servers and 400 clients on 1 machine. Also included in this submition is the best subclass code there is (Thanks Paul) and the best Error handling code there is (Thanks Thushan) It even includes support for GPF errors. If you want to see the Error handling in action, then unmark the line with err.raise in the Subclass.cls. Changed in this version: 1. Fixed the Stack overflow when there were to manny clients sending to much data at the same time. This happened when ther was about 5MB of data that still needed to be processed. 2. Fixed the overflow error in the subclass code than sometimes could happen on a win98. 3. Improved the error handling. If you are tinking of creating a server then also have a look at my other submition for creating a NT service (very easy) https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=44568&lngWId=1
--------------------------------------------------Advertisement:
If you want a valuable developers tool then look at https://siteskinner.com This will give you a library with some great objects that you can use. Like: FTP, POP, SMTP, Telnet, DOS, publishing database information as HTML (plus email), triple des encryption, hook into internet explorer, internet connection state, Windows task scheduler, generic tcp/ip client and server, Web page data grabber, capture dos command output, ...
--------------------------------------------------

Rate Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing)

Download Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing)

Download Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing) (67 KB)

Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing) Comments

No comments have been posted about Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing). Why not be the first to post a comment about Generic Client and Server (Winsock API only, dll wrapper, suporting multiple instances, subclassing).

Post your comment

Subject:
Message:
0/1000 characters