[fpc-devel] RQ : using TTCPClient / TEventLoop HOWTO ?

Alexander Todorov alexx.todorov at gmail.com
Fri Oct 21 15:30:37 CEST 2005


Hello,
can anybody point me to documentation on using TTCPClient from fpSock.pp ?
I am porting a Delphi app which uses TidTCPClient to send / receive
text over tcp.
I changed this to using TTCPClient but when doing :
    MyTCPClient.Active := true
an exception is raised : 'No event loop assigned'

This is because property EventLoop : TEventLoop is not assigned.
What is it used for ? Nothing found on google. (:

Even doing :
  MyTCPClient.EventLoop := MyEventLoop;
  MyTCPClient.Active := true

doesn't help. The exception is not raised but the client is still disconnected.

Any help / hints would be more than welcome.

TIA.



More information about the fpc-devel mailing list