Get the name of the local host

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

Return value


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



Returned with the host name. (a)


%SS_GETHOSTNAME returns the local host name in h_name.

The form of h_name depends on the system and its particular implementation. For example, it may return a simple host name such as socrates or a fully‑qualified domain name such as socrates.synergex.com.

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