Home > Archive > Delphi > December 2005 > how to create a separate thread on the indy TCPClient
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to create a separate thread on the indy TCPClient
|
|
|
| Hi ,
I am writing a chat client - the client (I'am using Indy TcpClient) needs to check the socket for data
every, say 2 seconds (using timer).
The client has no problems reading output from the server, however if there has been no data written since the last check, then TCPClient.ReadLn;
seems to hang (or block ??!?) and then the application just hangs.
I want to create a seperate thread one for TCPclient listening of server and one to send data to server. I think it would help me. But I dont know how to do that :] maybe somebody can help me to handle this problem, maybe you have some demo , sample or smth else.
Regards, | |
| serge_linckels 2005-12-31, 3:04 am |
| Hi,
Since I have the same problem I'm wondering if you've found a solution? If yes, could you please send it to me?
Tx
quote: Originally posted by kafke
Hi ,
I am writing a chat client - the client (I'am using Indy TcpClient) needs to check the socket for data
every, say 2 seconds (using timer).
The client has no problems reading output from the server, however if there has been no data written since the last check, then TCPClient.ReadLn;
seems to hang (or block ??!?) and then the application just hangs.
I want to create a seperate thread one for TCPclient listening of server and one to send data to server. I think it would help me. But I dont know how to do that :] maybe somebody can help me to handle this problem, maybe you have some demo , sample or smth else.
Regards,
|
|
|
|
|