Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock.ocx
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00266661
Message ID:
00266965
Vues:
17
>Can anyone help with this?
>
>I have microsoft's winsock.ocx v6. I set it to listen. When my client makes a connection, the connectionrequest event fires...
>
>I run the close method, and then run the accept method.
>
>Once I try to run the accept method, it errors out replying that the operation is invalid. I check the socket state and it is still at 2 (listening)... According to the documentation, once I close it it should be back at 0.
>
>
>Can someone please help...
>
>
>Thanx,
>
>
>Mike Mead

Mike

Check this out...
http://msdn.microsoft.com/library/devprods/vs6/vbasic/vbcon98/vbconusingwinsockcontrol.htm
Please note that it is for VB!

This article does not say much about multi-instancing, but the article I have on MSDN CD clearly indicates that you should accept new connection on another instance of this control. The firs instance is still continues to listen.

Unfortunately, I am not sure how to create ActiveX control arrays in VFP because the index property of this control is missing in VFP and it is available in VB.

I took me some time to write a TCP/IP server and receiver in VB. It is quite simple after all, and it works GREAT!

Please send me an e-mail directly if you would like to see me code in VB.

Serge.
Serge Matsevilo, Seattle, WA, USA
Senior Programmer/Analyst,
iServ Systems, Inc.
e-mail: smatsevilo@iservsystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform