Good day! Has anyone tried working with indy components, in particular, with idTCPClient and idTCPServer , in the console? You need to create a console application that transfers files over the network. Prompt links and tips ...

    2 answers 2

    Honestly, I have not tried it, but with the expectation that these are invisible components, then why not? Create an object

     client := idTCPClient.Create(); 

    customize properties - and forward. Event handlers can also be assigned programmatically, for example:

     procedure MouseClick(Sender: TObject); ..... Control.OnMouseClick := MouseClick; 

    But in general, if there is a possibility, then it is better to use WinSocks , and the console application will be faster and more appropriate.

      Use WinAPI Winsock . There are many examples on the net.

      • and someone will give links? - IntegralAL
      • Look delfcode.ru/forum/30-467-1 - Vyacheslav Kirichenko
      • one
        and here , the section "files and the Internet" - Sh4dow
      • And through idTCPClient, idTCPServer, did anyone try to write a console program? - IntegralAL