%SS_GETHOSTNAME

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

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

h_name

Returned with the host name. (a)

Discussion

%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.