What does "Gai" GaiException and EAI for / mean?
Lines 22-27 of the file GaiException.java
indicate the following:
/ ** Unchecked exception thrown when {@link Os} {@code getaddrinfo} or {@code getnameinfo} * methods do not work. This exception contains a native error value, for comparison to * {@code GAI_} constants in {@link OsConstants} must be complex * callers need to tweak their behavior based on the exact error. * /
Based on the wording @code getaddrinfo
, it looks like it means Get Address Information .
OS interface
The method is getaddrinfo
defined in the interface file Os.java
on line 50:
public InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException;
OS interface implementations
The method getaddrinfo
is then implemented (via the Os interface) ForwardingOs.java
on line 59:
public InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException {
return os.getaddrinfo(node, hints);
}
The functionality is ForwardingOs.java
then inherited from BlockGuardOs.java (and not overridden)
source to share