Results 1 to 22 of 22

Thread: Winsock Class

Hybrid View

  1. #1
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Winsock Class

    there is something out there called CSocketMaster.
    It is a class for doing the stuff the Winsock control does
    http://www.freevbcode.com/ShowCode.asp?ID=6485

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Winsock Class

    Quote Originally Posted by moeur
    there is something out there called CSocketMaster.
    It is a class for doing the stuff the Winsock control does
    http://www.freevbcode.com/ShowCode.asp?ID=6485
    Is there an advantage to that? Besides no ocx?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2004
    Posts
    279

    Re: Winsock Class

    I have tried CSocketMaster but I can't get the Connect to work properly neither in .dll format also.

    I tried:
    VB Code:
    1. mSocket.Connect "66.66.66.66", 9800
    2.  
    3. If mSocket.State = sckError Then
    4.      MsgBox "Cant connect"
    5. End If
    6.  
    7. If mSocket.State = sckConnected Then
    8.      MsgBox "Connected"
    9. End If
    10.  
    11. MsgBox mSocket.State 'always returns sckConnecting
    It always returns sckConnecting and doesn't do anything else (even when the server is up) and returns sckConnecting and doesnt do anything else instead of returning sckError when the server is down.

    Could someone post a good test example using CSocketMaster with DataArrival, Connect, Accept, SendData, GetData, etc. ?

  4. #4
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Winsock Class

    Is there an advantage to that? Besides no ocx?
    The two main advantages are, no OCX and you get the source code to play around with.

    Tantrum, Did you run the examples the code comes with?

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