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:
00091225
Views:
28
>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
Petras Virzintas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform