Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSWINSCK.OCX - Has anyone got it to work?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00090010
Message ID:
00091225
Vues:
29
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform