Board index » delphi » IDTCPClient and TReadResponse
IDTCPClient and TReadResponse
2007-09-27 11:29:36 PM
I am using a TIDTCPClient wih a CMDServer to implement a chat system. The
system sends chat and other file types (record).
On one hand, I have to use TReadResponse attached to the Client to recieve
msgs to the client and parse them (i.e chat text)
On the other hand, when implementing the send record (which works fine if i
leave out the chat handling) the TReadResponse 'hijacks' my data and causes
I have tried to suspend the rr thread then resume after my RECORD handling
is done. Also I have tried to completely destroy the rr thread then recreate
afterwards to no avail.
Here are a few relevant snippets:
var rr: TReadResponse = nil;
Any thoughts on how I can mix the 2 or a method that can handle my problem?
I see posts referring to message queues... is that the right direction? If
so where can I get schooled on it?
Is it me or are the INDY help files useless? If I just wanted Class Defs,
I'd look at the source.
Thanks a ton!