Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Winsock Control - Please Help
Message
From
26/11/1997 23:18:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
MS Winsock Control - Please Help
Miscellaneous
Thread ID:
00062529
Message ID:
00062529
Views:
76
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
Reply
Map
View

Click here to load this message in the networking platform