>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;315124Regards
Herman