Jak zrobić w TCPClientcie z pakietu Indy odpowiednik procedury:
if errorcode = 10061 then
begin
costam
end