Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

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.

  • Handle [in] the session handle.

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()

TOCIndex