Hi All.
I am writing a wee Kylix daemon, and have everything wroking, but one thing
I want to do is send some info via TCP to a windows PC listening on a port.
 
My code is as follows :-
 
              oBlockSocket := TBlockSocket.create;
              oBlockSocket.CreateSocket;
              oBlockSocket.Bind('192.168.1.2','9000');
              oBlockSocket.SetTimeout(1000);
              oBlockSocket.Connect('192.168.1.2','9000');
              oBlockSocket.SendString('test'#13#10);
              oBlockSocket.RecvString(1000); 
              oBlockSocket.free;
 
The problem I have is, when I do the above, nothing is sent to the windows
server.
I know both machines can see each other,and I can use telnet from the linux
box to connect to the windows server but just cant see why I cant get the
above to wrk.
 
Can anyone help??
 
Thanks,Jeremy
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to