Sys::h_errno
socket :: HErrno :: defaultinit
socket :: HErrno :: no_address
The requested name is valid but does not have an IP addresscore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
socket :: HErrno :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
socket :: HErrno :: no_address
The requested name is valid but does not have an IP addresscore :: Object :: output_class_name
Display class name on stdout (debug only).
# Error code of `Sys::h_errno`
extern class HErrno `{ int `}
# The specified host is unknown
fun host_not_found: Bool `{ return self == HOST_NOT_FOUND; `}
# The requested name is valid but does not have an IP address
#
# Same as `no_data`.
fun no_address: Bool `{ return self == NO_ADDRESS; `}
# The requested name is valid byt does not have an IP address
#
# Same as `no_address`.
fun no_data: Bool `{ return self == NO_DATA; `}
# A nonrecoverable name server error occurred
fun no_recovery: Bool `{ return self == NO_RECOVERY; `}
# A temporary error occurred on an authoritative name server, try again later
fun try_again: Bool `{ return self == TRY_AGAIN; `}
redef fun to_s
do
if host_not_found then
return "The specified host is unknown"
else if no_address then
return "The requested name is valid but does not have an IP address"
else if no_recovery then
return "A nonrecoverable name server error occurred"
else if try_again then
return "A temporary error occurred on an authoritative name server, try again later"
else
# This may happen if another call was made to `gethostbyname`
# before we fetch the error code.
return "Unknown error on `gethostbyname`"
end
end
end
lib/socket/socket_c.nit:589,1--626,3