Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock examples
Message
 
À
08/04/2003 18:49:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00775262
Message ID:
00775623
Vues:
26
Thanks Marcia - I needed to post your reply in my inbox!
>Hello John.
>
>My development environment is Windows XP and I have Foxpro6,7 and 8. This example does not work on any version. I would appreciate any examples and or hints that would point me towards the right direction. My goal for now is simply to connect to another TCP socket from within VFP.
>
>If you have a copy of MegaFox: 1002 Things You Wanted to Know About Extending VFP, we have a Winsock class in Chapter 9:
>
>What is the winsock control?
>The Winsock control (contained in: mswinsck.ocx, associated help file mswnsk98.chm) is a ‘socket’ object which allows you to connect to a remote machine and exchange data using either of two communication protocols:
>• User Datagram Protocol (UDP) A connectionless protocol (analogous to passing a note) under which data is passed from one ‘peer’ computer to another without the need to establish an explicit connection.
>• Transmission Control Protocol (TCP) A connection based protocol (analogous to a telephone call) which requires that a connection be explicitly established between one computer acting as the ‘client’ and another computer acting as the ‘host’.
>So which protocol is best?
>The answer, as so often in VFP, is that it depends. Each protocol has its benefits, and its drawbacks. Table 9.12 gives a side-by-side comparison.
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform