|
-
Sep 8th, 2000, 09:05 PM
#1
Thread Starter
Lively Member
howcome when i try to connect with my winsock client... to my server, it keeps giving me a stupid error!!! it keeps saying invalide operation at current state!! error 40020
please respond fast!!!
client code
Option Explicit
Private Sub cmdConnect_Click()
On Error Resume Next
sock.Connect txtIP, txtPort
End Sub
Private Sub cmdDisconnect_Click()
sock.Close
End Sub
Private Sub sock_Connect()
MsgBox "hi", vbOKOnly, "hi"
End Sub
server code
Option Explicit
Private Sub Form_Load()
If sock.State <> sckClosed Then
sock.Close
End If
sock.Listen
End Sub
Private Sub sock_Connect()
MsgBox "hi", vbOKOnly, "hi"
End Sub
Private Sub sock_ConnectionRequest(ByVal requestID As Long)
sock.Accept requestID
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|