Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    g0d
    g0d is offline
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    [VB] Winsock Issue

    My project is client/server and the client is .DLL with a form that uses only winsock api, no control. The server is .EXE and uses the winsock control. The client uses CSocketMaster.cls and ModSocketMaster.bas for the winsock.

    When the client tries to connect to the server, it doesn't respond or popup any MsgBox saying "Connected" or "Couldn't Connect", it just simply doesn't respond.

    Here is the declarations and code used to connect:
    Code:
    Dim WithEvents Client As CSocketMaster ' general declaration
    
    Private Sub Form_Load()
    Set Client = New CSocketMaster
    End Sub
    
    Private Sub cmdConnect_Click()
    Client.Connect "66.666.666.666", "1075" ' Example IP
    End Sub
    I've tried the other way also, Client.RemoteHost, etc. but it doesn't make a difference.

    The class and module are attached to this post to help solve this problem.

    The MsgBox's are located at the end of the CSocketMaster.cls.

    Hopefully someone can help me resolve this issue that's been haunting me for the past 4 days.
    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
  •