These are chat archives for IndySockets/Indy

19th
Nov 2015
Remy Lebeau
@rlebeau
Nov 19 2015 02:46
google.com does not run an echo server. Echo is an actual protocol. You are confusing echo with ping, which is implemented in Indy using TIdICMPClient (ping is a type of ICMP request).
Adrien
@amorel-ljsl
Nov 19 2015 09:35
Remy, that's exactly what i successfully figured out last night :( I was completely mistaken! So i created a thread, and there i create a TIdICMPClient, using its "ping" method. It works much better! Thank you :)
Remy Lebeau
@rlebeau
Nov 19 2015 17:37
just be aware that TIdIcmpClient uses a RAW socket internally, and RAW sockets are restricted to admin users on most platforms, so your app/thread needs to run with elevated privileges. Otherwise, try looking at platform-specific APIs that are not restricted to admins, like Win32's IcmpSendEcho().