%SS2_GETHOSTBYADDR

Get the host name corresponding to an IP address

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %SS2_GETHOSTBYADDR(in_addr6, h_name)

Return value

status

If successful, returns SS_SUCCESS (0). If unsuccessful, returns SS_ENULL (2). See the Socket Errors table for additional information about this error. (n)

Arguments

in_addr6

Specifies an IPv4 or IPv6 address. ([#]byte)

h_name

Returned with the host name. (a)

Discussion

Note

We recommend using %SS2_GETNAMEINFO rather than %SS2_GETHOSTBYADDR, because the latter is based on a deprecated Winsock function.

%SS2_GETHOSTBYADDR retrieves a host name using the host address in_addr6 as a search parameter. This function supports both IPv4 and IPv6 formatted addresses.

If SS_ENULL is returned, the system error code can be returned by immediately calling %SYSERR.