SetNodeName
Sets a client side node name.
Short Name
SETNODE()
Type
Server only
Declaration
COUNT SetNodeName(pTEXT nodename)
Description
SetNodeName() specifies a client side node name. The specified name appears in the ctadmn utility under the option for ‘list clients’.
The alternative method is to define the global variable ctnodnam. This variable is a null terminated, 32-byte, ASCII string hold the desired value. To set the ctnodnam to the string “Development Sun Sparc” do the following:
strcpy(ctnodnam,"Development Sun Sparc");
Note: SetNodeName() must be called after c-tree has been initialized, typically with InitISAMXtd().
Return
Always returns NO_ERROR (0).
Example
pTEXT nodename = "Development Sun Sparc";
SetNodeName(nodename);
Limitations
Available only with the FairCom Server. A call to SetNodeName() on a non-server system results in NO_ERROR (0) error return.
See also
InitISAMXtd()