Results 1 to 5 of 5

Thread: new winsock class

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2009
    Posts
    489

    new winsock class

    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.

    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.
    doesn't use subclassing anymore.

    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.
    Code:
     Dim sck As WSocket
     Set sck = New WSocket
    no additional code is needed.

    the control version doesn't need any init code

    enjoy
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width