Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

tcn00_Error cn85GetKernelSession ( VControlDataT *  vcontrol,
char *  replyData,
int *  replyLen,
bool &  bTempConnect 
)

Free the session structure.

Parameters:
vcontrol [IN] the well knonw DBMServer session structure
replyData [IN] the well known DBMServer answer buffer
replyLen [OUT] the well known DBMServer answer length
bTemporary [INOUT] flag for temporary sessions

Definition at line 234 of file vcn85.cpp.

References cn85GetKernelSession().

Referenced by cn85_DBExecute(), cn85DBConnect(), cn85DBFetch(), cn85DBFetchNice(), and cn85GetKernelSession().

{
  tcn00_Error     nFuncReturn = OK_CN00;

  if (vcontrol->pKernelSession != NULL) {
    bTempConnect = false;
  } // end if

  if (vcontrol->pKernelSession == NULL) {
    if (bTempConnect) {
      nFuncReturn = cn85GetKernelSession(vcontrol, replyData, replyLen);
    } else {
      nFuncReturn = cn90AnswerIError(replyData, replyLen, ERR_NOUTILSESSION_CN00);
    } // end if
  } // end if

  bTempConnect = (nFuncReturn != OK_CN00) ? false : bTempConnect;
  
  return nFuncReturn;
} // end cn85GetKernelSession


Generated by  Doxygen 1.6.0   Back to index