... to :Listen() from a Client (another party). The question : How can I know the client connect to server (if I am server)? I try as below code but :bConnect is not response when client connect. oSocket:bAccept = { | oSocket | ; oClient := TSocket():Accept( ...
... I dont seem to be able to check if i'm connected. I have a public variable called lConnected that is initially set to .F. - this is set to true in bConnect, but when i try to reference it, it always returns .f. - the senddata & getdata routines all work fine. Is there a better way to detect ...
... Socket server as I know. I use standart port 2000 and use 127.0.0.1 as IP. (I have tried several unknown ip) I run SockCli.prg and connect. The bConnect block is evaluated, but the return value of connect method is -1. It is not connected. so if you call senddata method after that, the unexpected ...
Horizon wrote:I have 11.01. When I try to run SockCli.prg as an example without running SockSer.prg, Tsocket runs to bConnect. I think it should say can not connected.
unfortunately I never solved the problem above, and I'm still on 9.05
I have 11.01. When I try to run SockCli.prg as an example without running SockSer.prg, Tsocket runs to bConnect. I think it should say can not connected.
... server is not activate. I don't know. 2. When the server down. I know but when server re-activate. I try to ::connect() but it doesn't know ( ::bConnect is not run ). - How can I know the server is activate or not? - How can reconnect if the server re-activate? Regards, Dutch oSocket := ...