Good day! Has anyone tried working with
indy components, in particular, with
idTCPServer , in the console? You need to create a console application that transfers files over the network. Prompt links and tips ...
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.
WinAPI Winsock . There are many examples on the net.