I have a connection that I give 20 seconds for a timeout (slow link). I need to allow my user to cancel this connection call.
I already have a connection going on in the stream so that I can save the GUI, but how do I tell Indy to cancel? I also have to call a cancellation from the main thread because the call to the connection is blocked. Is it possible?
This is for C ++ Builder, but Delphi's answer will be fine.
Connect() - Disconnect() , , Connect(). Disconnect(), , Connect() .
, TIdAntiFreeze, Process() , , , .
TIdAntiFreeze, . IdleTimeout, DoProcess().
IOHandler, TIdConnectThread, AntiFreeze, .
Source: https://habr.com/ru/post/1776318/More articles:What is code injection in .net (as a programming skill)? - .netHow are instances resolved when child containers are used? - castle-windsorHow to get the full file path in Zend - phpWhat is the rationale for Assignment in State alerts in the Zend Studio IDE? - phpAvailability Java Swing Shift + F10 - javaNeed voice recognition without google dialog - androidManaging log file location through JNDI in Spring? - javaMongoDB GridFS bucket? - c #question about compiled programmatic use of external libraries - c ++Воздействие не маркировки класса - .netAll Articles