Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetSessionType

Retrieve the current session type.

Declaration

CTSESSION_TYPE ctdbGetSessionType(CTHANDLE Handle)

Description

ctdbGetSessionType() retrieves the current session type. The session type is initially set when ctdbAllocSession() is called to allocate a new session handle, and it can be modified using ctdbSetSessionType().

  • Handle [in] the session handle.

Returns

ctdbGetSessionType() returns the session type. If the session handle is not valid, ctdbGetSessionType() always return CTSESSION_CTDB.

See also

ctdbSetSessionType()

TOCIndex