hey all, this is my implementation of winsock
it's different from other (SocketMaster)
that it doesn't use any unusual code
no asm code, nor nothing unusual.
doesn't use subclassing anymore.only simple subclassing.
the subclassing is safe enough to use,
it doesn't use dynamic subclassing which may cause problems.
it can be loaded several on one form, with an index.
can be freely load/unload dynamicly.
there is a minor change between vb socket and this,
methods:
CloseSck (instead of close)
Error event has a little different header
there are two examples include
one for chat + send/receive file
second , is the example from apinet
i also tested it with my mail sender, and it works very well.
please if you test it, let me know what you think.
there are two versions: control and class.
The way to initialize the class is as you init every class.
no additional code is needed.Code:Dim sck As WSocket Set sck = New WSocket
the control version doesn't need any init code
enjoy




Reply With Quote