Board index » delphi » a easy question

a easy question

is idTcpClient work well in Thread?

i.e

TThreadClient = class(TThread)
private
  FClient: TidTcpClient;
public
end;
and do something with TThreadClient.

if it's wrong,
how can i use TidTcpClient in Thread.

thx.

 

Re:a easy question


Take a look at the newsreader demo, where there's something
similar -although using the IdNNTP component.

---
Sergio.

Re:a easy question


Also see the telnet component as this is the basis for that component's
functionality
Quote
Yoboy wrote:
> is idTcpClient work well in Thread?

> i.e

> TThreadClient = class(TThread)
> private
>   FClient: TidTcpClient;
> public
> end;
> and do something with TThreadClient.

> if it's wrong,
> how can i use TidTcpClient in Thread.

> thx.

Other Threads