Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinSock Server
Message
From
05/05/2005 18:48:25
 
 
To
05/05/2005 13:46:09
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows NT
Miscellaneous
Thread ID:
01011390
Message ID:
01011462
Views:
18
>Hi there foxers.
>
>I am currently assigned with the task of building a Winsock server that is supposed to take care of some computers in Lan Houses. So, I did some research and found out that for it to listen i should place some code in Form.Init:
>
>
>Thisform.tcpServer.localPort = 12345
>Thisform.tcpServer.Listen()
>
>
>By doing that it should start listen. Then, I have a form that I use to test these kinds of connection. But I can´t connect to this server I just built. Am I doing something wrong? Is it necessary to put a Connect Clause anywhere?
>
>TIA,
>Pablo Márcio de Oliveira
>
>Inside the scream is silent, inside it must remain


Hi Pablo,

First of all, you have to use ".Object" (without quotes) to get WinSock method/properties works properly
Thisform.tcpServer.OBJECT.localPort = 12345
Thisform.tcpServer.OBJECT.Listen()
Get this VFP FoxSock Client-Server example at MSDN:
http://support.microsoft.com/default.aspx?scid=kb;en-us;315124

Regards
Herman
Previous
Reply
Map
View

Click here to load this message in the networking platform