Re: connect(2) behavior with unreacheable hosts

From: Don <don_at_calis.blacksun.org>
Date: Sat, 12 Apr 2003 13:02:18 -0400 (EDT)
> ICMP Type 11. If the host does not receive this message, then the only
> thing connect() can do is timeout. In that case connect() should return -1
> and errno should return [ETIMEDOUT] or [ENETUNREACH] (I have no idea which
> one).
Actually if ICMP is not working, it should return [ETIMEDOUT]. If ICMP is
working, I am not sure which of those errno value would be returned. This
is just a guess based on the information in connect(2).

-Don
Received on Sat Apr 12 2003 - 07:58:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:03 UTC