Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock examples
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00775262
Message ID:
00776340
Vues:
20
Terry,
The IP address of the remote host for the client must be the same as the machine where you are running the server module. Was the URL you entered running a TCP server so the client could connect?

WRT VFP_7Bak.Exe, that is a file name I used to test sending binary files via the connection. That's the file I was writing on input to. You can disregard it.

>Larry,
>I downloaded the example (thanks!). I noticed the remote host was your URL, but the init assign local host. So I put a dummy URL in Remote Host and it hiccupped. Is something going on on your server that the example needs to work with? And what is VFP_7BAK.exe?
>
>Thanks
>Terry
>
>>>I am preparing for an upcoming project that will involve TCP communication between my Foxpro application and an outside server. I found a zip of a simple client\server application at the MSDN site.
>>>
>>>http://support.microsoft.com/default.aspx?scid=kb;en-us;315124
>>>
>>>I was able to run the programs but the client app would not connect to the server app. The server did have its port open as I was able to ping it. I was running both programs on my local machine and there are no firewall issues and i have tried all kinds of different socket numbers.
>>>
>>>Perhaps this example is using a deprecated version of winsocks.
>>>
>>>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.
>>>
>>>Thanks,
>>
>>John,
>>The last time I checked, this example worked in VFP 6 and 7. I haven't tested it in 8 yet.
>>
>>http://members.bellatlantic.net/~lmiller3/downloads/winsock_test.zip
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform