Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Winsock Control - Please Help
Message
De
26/11/1997 23:18:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
MS Winsock Control - Please Help
Divers
Thread ID:
00062529
Message ID:
00062529
Vues:
71
I am trying to use the Microsft Winsock v 5.0 to create clients to server
connection on a LAN via TCP/IP with VFP 5.0a.

On the server application I do the following:
1. In the form Init :
tcpServer.LocalPort =
tcpServer.Listen

2.On the ConnectionRequest:
If tcpServer.State <> sckClosed Then tcpServer.Close
tcpServer.Accept requestID
Endif

On the client side I'm doing the following:

1. In the form Init:
tcpClient.RemoteHost = "RemoteComputerName" or "IP address"
tcpClient.RemotePort =
tcpClient.Connect
2. Command To send data :
tcpClient.SendData "String"

The server application gets into listen state, but the client application
is unable to connect. I even tryed to set the LocalHost and LocalPort,
still without any success.

I would appreciate any input/examples on how I can make it to work.

TIA for your assitance.

Yossi Levi
Yossi@Pacbell.net
Répondre
Fil
Voir

Click here to load this message in the networking platform