Jump to content
Sign in to follow this  
Josbe

Ping and @error

Recommended Posts

Josbe

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.

Share this post


Link to post
Share on other sites
Matt @ MPCS

It might occur if you don't have a network card.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Josbe

It might occur if you don't have a network card.

*** Matt @ MPCS

<{POST_SNAPBACK}>

Yes, that could be an error.

Is there another? (Because, the PC has a net's card.)

Share this post


Link to post
Share on other sites
Matt @ MPCS

Maybe the card is disabled or doesn't have an IP address.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Josbe

The function returns code is 4 in the following cases:

...

<{POST_SNAPBACK}>

Wow! Thanks JdeB. (interesting cases list) :)

Thank you, Matt. (too)

Share this post


Link to post
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
Sign in to follow this  

×