Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSWINSCK.OCX - Has anyone got it to work?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00090010
Message ID:
00091514
Views:
25
>>The ErrorEvent of the Winsock control is called whenever data is received .
>>Here is what comes through:
>>number = 1925
>>description = "dataarrival"
>>scode = 7
>>
>>I set LocalPort = 0 (Auto Assigned)
>>Do you know how to call the connect method instead of the connect event?
>
>That's the million dollar question - I can't get the "connect" method to work. So far my VFP "server" application can connect to the standard "telnet" client. On "ConnectRequest" it issues the "Accept", on "DataArrival" it has the number of bytes in "GetData" but NO data and the "telnet" client receives any data sent using "SendData" correctly. But that's as far as I've got. By the way the "Accept" had to be issued from a second "Winsock" control because the first one insists on "Listening" only.
>
>Hope I can resolve this soon. Perhaps there is a better way of communicating via TCP/IP?
>
>Rgds
>Petras

We are at the exact same place, second Winsock control and all...
I think the solution is a 3rd patry lib, I have read some other threads about this control and that is what the end result has been. Seems kind of stupid for MS to include a control that we can not use.
Previous
Reply
Map
View

Click here to load this message in the networking platform