|
-
Nov 21st, 2005, 09:15 PM
#1
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
-
Nov 21st, 2005, 09:42 PM
#2
Re: Winsock Class
 Originally Posted by moeur
Is there an advantage to that? Besides no ocx?
-
Nov 21st, 2005, 10:01 PM
#3
Thread Starter
Hyperactive Member
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:
mSocket.Connect "66.66.66.66", 9800
If mSocket.State = sckError Then
MsgBox "Cant connect"
End If
If mSocket.State = sckConnected Then
MsgBox "Connected"
End If
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. ?
-
Nov 21st, 2005, 10:37 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|