Re: [twsocket] Connection OK but no data

2009-04-23 Thread Wilfried Mestdagh
Hello Alex, If you don't use wait loops then you have a message pump in Delphi. The message pump wil pump messages as soon as your code ends. This is hidden in Delphi. So if you don't execute code (eg waiting loops) all is ok. Do you have derrived your client from TWSocketClient? If so then you h

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Francois PIETTE
> I looked at the example TcpServ1 and it seems pretty straight forward. I > used that as my model. I do understand that the OnDataAvailable event is > the > one from the instantiated client socket, which is assigned in the > OnClientConnect event of the server socket. But I can not understand why

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Alex Greenspan
Hi Francois, I looked at the example TcpServ1 and it seems pretty straight forward. I used that as my model. I do understand that the OnDataAvailable event is the one from the instantiated client socket, which is assigned in the OnClientConnect event of the server socket. But I can not understand

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Alex Greenspan
Hi Wilfried, and thanks for your response. No I do not know anything about the message pump. I started from the small sample code for the server and did not see anything about message pump, though I have seen other references to it. How to implement? I am using Delphi 7 by the way. -Alex On Wed

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Francois Piette
> I am using TWSocketServer to listen and connect to Rabbit Controllers > (clients). I can establish a connection but I do not receive the subsequent > strings, nor can I send any strings. The OnSendData event does not even > trigger when I use the SendStr method of the server instantiated client.

Re: [twsocket] Connection OK but no data

2009-04-22 Thread Wilfried Mestdagh
Hello Alex, Are you sure you have a working message pump? If not no event will fire. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, April 22, 2009, 15:45, Alex Greenspan wrote: > I am using TWSocketServer to listen and connect to

[twsocket] Connection OK but no data

2009-04-22 Thread Alex Greenspan
I am using TWSocketServer to listen and connect to Rabbit Controllers (clients). I can establish a connection but I do not receive the subsequent strings, nor can I send any strings. The OnSendData event does not even trigger when I use the SendStr method of the server instantiated client. Any idea