Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock
Message
De
14/01/2003 05:15:12
 
 
À
13/01/2003 23:51:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00741288
Message ID:
00741338
Vues:
21
Hi,

>>when the connection request event occurs, create a new object to accept the request but I don't know how to create a new object, can any body tell me. It will be preciated if the code of ConnectionRequest event attached <<

Essentially, in ConnectionRequest():
LPARAMETERS tnRequestId
loRef = CreateObj("Winsock.winsock.1")
loRef.Accept(tnRequestId)
However this is an oversimplification. You will probably want to (a) subclass the WinSock control in VFP and (b) maintain some sort of collection pool of Sockets.

HTH,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform