Jump to content

Ping and @error


Josbe
 Share

Recommended Posts

From Helpfile:

PING

---------------------------------------------------

When the function fails (returns 0) @error contains extended information:

1 = Host is offline

2 = Host is unreachable

3 = Bad destination

4 = Other errors

Recently I was with the curiosity with value number 4, when Ping returned me to @error.

Could somebody extend to me(Info) about what "Other errors" could be?

Thanks in advance.

Link to comment
Share on other sites

  • Developers

From Helpfile:

Recently I was with the curiosity with value number 4, when Ping returned me to @error.

Could somebody extend to me(Info) about what "Other errors" could be?

Thanks in advance.

<{POST_SNAPBACK}>

The function returns code is 4 in the following cases:

- cannot load ICMP.DLL

- cannot translate HostName to IP Address

- in case any of the internal calls fail to initialize.

- any of these returncodes from the actual pingcall:

11001 IP_BUF_TOO_SMALL Buffer too small

11006 IP_NO_RESOURCES Insufficient system resources

11007 IP_BAD_OPTION Invalid option specified

11008 IP_HW_ERROR The hardware won't, so the software can't

11009 IP_PACKET_TOO_BIG Transmission size too large (Ping of Death, anyone?)

11011 IP_BAD_REQ Invalid request

11012 IP_BAD_ROUTE Invalid route

11013 IP_TTL_EXPIRED_TRANSIT Time To Live expired before reaching host

11014 IP_TTL_EXPIRED_REASSEM Time To Live expired after reaching host

11015 IP_PARAM_PROBLEM Something wrong, somewhere

11016 IP_SOURCE_QUENCH Host really isn't happy with the amount of ICMP traffic - please reduce your transmission rate

11017 IP_OPTION_TOO_BIG Try something a little less huge

11019 IP_ADDR_DELETED IP address has been deleted

11020 IP_SPEC_MTU_CHANGE Specific MTU change

11021 IP_MTU_CHANGE MTU got changed by someone, somewhere

11022 IP_UNLOAD Stack, he gone bye-bye

11050 IP_GENERAL_FAILURE Time for a three-finger-salute

11255 IP_PENDING Message queued but not yet sent

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...