Tuesday, July 19, 2011

error in winsock

hello I’m writing a program using winsock..whenever i try to send some data from the client i get the following error

“Run-time error ’40006′ Wrong protocol or connection state for the requesting transaction or request”

please help me in finding what’s going wrong…my client code is given below





Private Sub cmdLogin_Click()
Dim ip, port As String
ip = "127.0.0.1"
port = "5500"

sockClient.RemoteHost = ip
sockClient.RemotePort = port
sockClient.Connect

Dim temp As String
temp = "HELLO WORLD"
sockClient.SendData temp
End Sub



http://bit.ly/rbAhf7

No comments:

Post a Comment