I have problems because i would really like an event on the TcpClient that would get fired when a new message arived. But there is not a event for that, The Server has the onExecute event wich works well, but when i send message to client there need to be an timer that checks like:
Msg := IdTCPClient1.ReadLn;
But then i thought that the events that client have, OnWork, OnBeginWork, OnEndWork could be used, my plan was to send a stringstream from server, the help also says that the OnBeginWork will get fired if u use SendStream(), but it just isn't.
I gues the only way is to do the stream stuff, but i am just not sure how. Someone said that the client events need to be assigned first? hmm
Well hope someone can help me on this, i am requesting a normal event on the tcpclient like the OnRead that the TClientsocket have.