ctdbGetServerName
Return the server name associated with the session.
Declaration
pTEXT ctdbGetServerName(CTHANDLE Handle)
Description
ctdbGetServerName() returns the server name associated with the session. You must log on to the server with ctdbLogon() before getting the server name.
Returns
ctdbGetServerName() returns a pointer to the Server name, or NULL on failure.
Example
username=ctdbGetUserLogonName(hSession);
servname=ctdbGetServerName(hSession);
See also
ctdbLogon(), ctdbAllocSession(), ctdbGetUserLogonName()