Implementing PING through MFC coding.I want to implement to find whether a given URL is a valid one or not
Printable View
Implementing PING through MFC coding.I want to implement to find whether a given URL is a valid one or not
Hi,
Technically I don't think thet PING proves conclusively that a given host name is valid because PING will fail if the remote computer is down or unreachable for some reason.
Like all TCP/Ip utilities first the IP subsystem has to get the IP address
of a given URL (probably via the Gethostbyname function).
The GetHostByName function may be a better way. At least it would show if the URL exist in any of the Internet DNS databases.
Maybe someone could verify/correct me on this point