本文整理汇总了C++中SRVRTRACE_EXIT函数的典型用法代码示例。如果您正苦于以下问题:C++ SRVRTRACE_EXIT函数的具体用法?C++ SRVRTRACE_EXIT怎么用?C++ SRVRTRACE_EXIT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SRVRTRACE_EXIT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoCompression
/*
* write_count: on input contains the input size (i.e. uncompressed size)
* : on output contains the size after compression
*/
void DoCompression(CTCPIPSystemSrvr* pnode, HEADER* wheader, unsigned char* wbuffer, unsigned long& write_count)
{
SRVRTRACE_ENTER(FILE_TSS+19);
bool retcode = true;
unsigned long inCmpCount = write_count; // In number of bytes
unsigned char* cmp_buf = NULL;
retcode = pnode->m_compression.compress((unsigned char*)wbuffer, // input buffer (data to be compressed)
(unsigned int)inCmpCount, // input number of bytes
(int)COMP_DEFAULT,
(unsigned char**)&cmp_buf, // output buffer containing compressed output
(unsigned long&)write_count); // input/output param - input == max size, on output contains compressed size
if (retcode == false)
{
delete[] cmp_buf;
wheader->compress_type = COMP_NO_COMPRESSION;
wheader->cmp_length = 0;
write_count = inCmpCount;
SRVRTRACE_EXIT(FILE_TSS+19);
return;
}
memcpy(wbuffer, cmp_buf, write_count);
delete[] cmp_buf; //allocated in m_compression.compress();
wheader->compress_type=COMP_DEFAULT;
wheader->cmp_length = write_count;
SRVRTRACE_EXIT(FILE_TSS+19);
}
示例2: SRVRTRACE_ENTER
CEE_status CTimer_list::timer_create( long seconds,long microseconds, void* e_routine, CEE_tag_def u_tag,
CEE_handle_def *thandle, int receiveThrId )
{
SRVRTRACE_ENTER(FILE_LSN+5);
CTimer* cnode = list;
CTimer* pnode = list;
CTimer* nnode;
static short t_tag = 0;
_cc_status cc;
ADD_ONE_TO_HANDLE(&m_timer_handle);
memcpy(thandle, &m_timer_handle, sizeof(CEE_handle_def));
cc = SIGNALTIMEOUT(seconds * 100 + microseconds / 100, 0, (long)thandle, &t_tag, receiveThrId);
if (_status_lt (cc))
{
//SIGNALTIMEOUT cannot allocate a time-list element (TLE).
SRVRTRACE_EXIT(FILE_LSN+5);
SendEventMsg( MSG_SET_SRVR_CONTEXT_FAILED,
EVENTLOG_INFORMATION_TYPE,
GetCurrentProcessId(),
ODBCMX_SERVICE,
"CTimer_list::timer_create",
1,
"SIGNALTIMEOUT cannot allocate a time-list element (TLE)."
);
return CEE_OBJECTINITFAILED;
}
else if (_status_gt (cc))
{
//The given timeout value is illegal.
SRVRTRACE_EXIT(FILE_LSN+5);
SendEventMsg( MSG_PROGRAMMING_ERROR,
EVENTLOG_INFORMATION_TYPE,
GetCurrentProcessId(),
ODBCMX_SERVICE,
"CTimer_list::timer_create",
1,
"The given timeout value is illegal for SIGNALTIMEOUT."
);
return CEE_BADTIME;
}
//the timer has been created
while(cnode!=NULL )
{
pnode=cnode;
cnode=cnode->next;
}
if((nnode = new CTimer( seconds, microseconds, e_routine, u_tag, thandle, t_tag, cnode))!=NULL)
{
if(pnode!=NULL)
pnode->next = nnode;
else
list = nnode;
}
else
CANCELTIMEOUT ( t_tag );
SRVRTRACE_EXIT(FILE_LSN+5);
return (nnode == NULL)?CEE_OBJECTINITFAILED:CEE_SUCCESS;
}
示例3: DoExpand
bool DoExpand(CTCPIPSystemSrvr* pnode, HEADER& rheader, unsigned char* ibuffer, unsigned long& output_size)
{
SRVRTRACE_ENTER(FILE_TSS+20);
bool retcode;
unsigned char* obuffer;
int error=0;
char* tcp_obuffer=NULL;
if(rheader.compress_ind == COMP_YES )
{
/*
* check that the compression types is something that the driver understands
*/
if((rheader.compress_type < COMP_DEFAULT) ||
(rheader.compress_type > COMP_BEST_COMPRESSION))
{
pnode->send_error(SRVR_ERR_EXPAND_OPERATION,0, NULL);
SRVRTRACE_EXIT(FILE_TSS+20);
return false;
}
}
obuffer = (unsigned char*)new char[rheader.total_length +512]; // +512 is just to be safe
// (in case something goes wrong in decompression)
if (obuffer == NULL)
{
pnode->send_error(SRVR_ERR_MEMORY_ALLOCATE,(unsigned short)rheader.total_length, NULL);
SRVRTRACE_EXIT(FILE_TSS+20);
return false;
}
output_size = rheader.total_length;
retcode = pnode->m_compression.expand((unsigned char*)ibuffer, // input compressed buffer
(unsigned long)rheader.cmp_length, // input compresses length
(unsigned char**)&obuffer, // output buffer after decompression
(unsigned long&)output_size,
(int&)error); // output size after decompression (should be equal to rheader.total_length)
//output_size could be 0 or rheader.total_length, no other value.
if (retcode == false || output_size == 0 )
{
delete[] obuffer;
pnode->send_error(SRVR_ERR_EXPAND_OPERATION,0, NULL);
SRVRTRACE_EXIT(FILE_TSS+20);
return false;
}
pnode->r_assign((char*)obuffer, output_size);
rheader.compress_type = COMP_NO_COMPRESSION;
rheader.cmp_length = 0;
SRVRTRACE_EXIT(FILE_TSS+20);
return true;
}
示例4: CEE_HANDLE_IS_NIL
extern IDL_boolean
CEE_HANDLE_IS_NIL( const CEE_handle_def *handle)
{
SRVRTRACE_ENTER(FILE_TNSPTB+2);
if (handle->contents[0] == 0 &&
handle->contents[1] == 0 &&
handle->contents[2] == 0 &&
handle->contents[3] == 0)
{
SRVRTRACE_EXIT(FILE_TNSPT+1);
return IDL_TRUE;
}
SRVRTRACE_EXIT(FILE_TNSPTB+2);
return IDL_FALSE;
}
示例5: odbc_SQLSvc_TerminateDialogue_ts_res_
CEE_status
odbc_SQLSvc_TerminateDialogue_ts_res_(
/* In */ CEE_tag_def objtag_
, /* In */ const CEE_handle_def *call_id_
, /* In */ const struct odbc_SQLSvc_TerminateDialogue_exc_ *exception_
)
{
SRVRTRACE_ENTER(FILE_OIOM+2);
CInterface* pnode = (CInterface*)objtag_;
CEE_status sts = CEE_SUCCESS;
CEERCV_IOMessage_exc_ RCVexception_;
IDL_short error;
short reply_count;
CEERCV_IOMessage_reply_seq_ reply;
char* buffer = NULL;
UInt32 message_length = 0;
sts = odbc_SQLSvc_TerminateDialogue_param_res_(
pnode
, buffer
, message_length
, exception_
);
if (sts == CEE_SUCCESS)
sts = pnode->send_response(buffer, message_length, call_id_);
SRVRTRACE_EXIT(FILE_OIOM+2);
return sts;
}
示例6: odbc_SQLSrvr_EndTransaction_ts_res_
CEE_status
odbc_SQLSrvr_EndTransaction_ts_res_(
/* In */ CEE_tag_def objtag_
, /* In */ const CEE_handle_def *call_id_
, /* In */ const struct odbc_SQLSvc_EndTransaction_exc_ *exception_
, /* In */ ERROR_DESC_LIST_def *sqlWarning
)
{
SRVRTRACE_ENTER(FILE_OIOM+13);
CInterface* pnode = (CInterface*)objtag_;
CEE_status sts = CEE_SUCCESS;
CEERCV_IOMessage_exc_ RCVexception_;
IDL_short error;
short reply_count;
CEERCV_IOMessage_reply_seq_ reply;
char* buffer = NULL;
UInt32 message_length = 0;
odbc_SQLSrvr_EndTransaction_param_res_(
pnode
, buffer
, message_length
, exception_
, sqlWarning
);
if (sts == CEE_SUCCESS)
sts = pnode->send_response(buffer, message_length, call_id_);
SRVRTRACE_EXIT(FILE_OIOM+13);
return sts;
} // odbc_SQLSrvr_EndTransaction_ts_res_()
示例7: odbc_SQLSrvr_SetConnectionOption_ts_res_
CEE_status
odbc_SQLSrvr_SetConnectionOption_ts_res_(
/* In */ CEE_tag_def objtag_
, /* In */ const CEE_handle_def *call_id_
, /* In */ const struct odbc_SQLSvc_SetConnectionOption_exc_ *exception_
, /* In */ ERROR_DESC_LIST_def *sqlWarning
)
{
SRVRTRACE_ENTER(FILE_OIOM+3);
CInterface* pnode = (CInterface*)objtag_;
CEE_status sts = CEE_SUCCESS;
IDL_char* buffer = NULL;
IDL_unsigned_long message_length = 0;
sts = odbc_SQLSrvr_SetConnectionOption_param_res_(
pnode
, buffer
, message_length
, exception_
, sqlWarning
);
if (sts == CEE_SUCCESS)
sts = pnode->send_response(buffer, message_length, call_id_);
SRVRTRACE_EXIT(FILE_OIOM+3);
return sts;
}
示例8: odbc_SQLSrvr_Close_ts_res_
CEE_status
odbc_SQLSrvr_Close_ts_res_(
/* In */ CEE_tag_def objtag_
, /* In */ const CEE_handle_def *call_id_
, /* In */ IDL_long returnCode
, /* In */ IDL_long rowsAffected
, /* In */ IDL_long sqlWarningOrErrorLength
, /* In */ BYTE *sqlWarningOrError
)
{
SRVRTRACE_ENTER(FILE_OIOM+12);
CInterface* pnode = (CInterface*)objtag_;
CEE_status sts = CEE_SUCCESS;
IDL_char* buffer = NULL;
IDL_unsigned_long message_length = 0;
odbc_SQLSrvr_Close_param_res_(
pnode
, buffer
, message_length
, returnCode
, sqlWarningOrErrorLength
, sqlWarningOrError
, rowsAffected
);
if (sts == CEE_SUCCESS)
sts = pnode->send_response(buffer, message_length, call_id_);
SRVRTRACE_EXIT(FILE_OIOM+12);
return sts;
}
示例9: CEE_HANDLE_SET_NIL
extern void
CEE_HANDLE_SET_NIL( CEE_handle_def *handle)
{
SRVRTRACE_ENTER(FILE_TNSPTB+3);
memset(handle, 0, sizeof(CEE_handle_def));
SRVRTRACE_EXIT(FILE_TNSPTB+3);
}
示例10: SRVRTRACE_ENTER
CTCPIPSystemSrvr* CTCPIPSystemSrvr_list::ins_node( short nSocketFnum )
{
SRVRTRACE_ENTER(FILE_TSS+3);
CTCPIPSystemSrvr* cnode = list;
CTCPIPSystemSrvr* pnode = list;
CTCPIPSystemSrvr* nnode;
del_node(nSocketFnum);
while(cnode!=NULL )
{
pnode=cnode;
cnode=cnode->next;
}
if((nnode = (CTCPIPSystemSrvr*) new CTCPIPSystemSrvr(nSocketFnum))!=NULL)
{
nnode->next = cnode;
if(pnode!=NULL)
pnode->next = nnode;
else
list = nnode;
}
SRVRTRACE_EXIT(FILE_TSS+3);
return nnode;
}
示例11: SRVRTRACE_ENTER
//===================== CTempMemory_list ==================================
CTempMemory_list::CTempMemory_list()
{
SRVRTRACE_ENTER(FILE_TNSPTB+6);
list=NULL;
m_list_length = 0;
SRVRTRACE_EXIT(FILE_TNSPTB+6);
}
示例12: m_TraceCount
//LCOV_EXCL_STOP
CNSKListener::CNSKListener(): m_TraceCount(0), m_bIPv4 (false)
{
SRVRTRACE_ENTER(FILE_LSN+9);
m_bKeepRunning = true;
m_bTCPThreadKeepRunning = true;
memset(&m_call_id,0,sizeof(CEE_handle_def));
SRVRTRACE_EXIT(FILE_LSN+9);
}
示例13: SRVRTRACE_ENTER
//void* CNSKListenerSrvr::OpenTCPIPSession()
//moved to platform specific implementation file
void* CNSKListenerSrvr::CheckTCPIPRequest(void* ipnode)
{
SRVRTRACE_ENTER(FILE_LSNS+4);
CTCPIPSystemSrvr* pnode = (CTCPIPSystemSrvr*) ipnode;
pnode = (CTCPIPSystemSrvr*)PROCESS_TCPIP_REQUEST(pnode);
SRVRTRACE_EXIT(FILE_LSNS+4);
return (void*)pnode;
}
示例14: PROCESS_TCPIP_REQUEST
void* PROCESS_TCPIP_REQUEST(CTCPIPSystemSrvr* pnode)
{
SRVRTRACE_ENTER(FILE_TSS+17);
if (READ_TCPIP_REQUEST(pnode) == false)
{
GTransport.m_TCPIPSystemSrvr_list->del_node(pnode);
SRVRTRACE_EXIT(FILE_TSS+17);
return NULL;
}
BUILD_TCPIP_REQUEST(pnode);
if (pnode->m_nSocketFnum < 0)
{
GTransport.m_TCPIPSystemSrvr_list->del_node(pnode);
SRVRTRACE_EXIT(FILE_TSS+17);
return NULL;
}
// pnode->cleanup();
SRVRTRACE_EXIT(FILE_TSS+17);
return pnode;
}
示例15: odbc_SQLSrvr_Execute_ts_res_
CEE_status
odbc_SQLSrvr_Execute_ts_res_(
/* In */ CEE_tag_def objtag_
, /* In */ const CEE_handle_def *call_id_
, /* In */ IDL_long returnCode
, /* In */ IDL_long sqlWarningOrErrorLength
, /* In */ BYTE *sqlWarningOrError
, /* In */ IDL_long rowsReturned
, /* In */ IDL_long sqlQueryType
, /* In */ IDL_long estimatedCost
, /* In */ IDL_long outValuesLength
, /* In */ BYTE *outValues
, /* In */ IDL_long outputDescLength // Used with execdirect
, /* In */ BYTE *outputDesc // Used with execdirect
, /* In */ Long stmtHandle // Used for SPJ result sets
, /* In */ IDL_long stmtHandleKey
)
{
SRVRTRACE_ENTER(FILE_OIOM+23);
CInterface *pnode = (CInterface*)objtag_;
CEE_status sts = CEE_SUCCESS;
CEERCV_IOMessage_exc_ RCVexception_;
IDL_short error;
short reply_count;
CEERCV_IOMessage_reply_seq_ reply;
char *buffer = NULL;
UInt32 message_length = 0;
odbc_SQLSrvr_Execute_param_res_( pnode
, buffer
, message_length
, returnCode
, sqlWarningOrErrorLength
, sqlWarningOrError
, rowsReturned
, sqlQueryType
, estimatedCost
, outValuesLength
, outValues
, outputDescLength
, outputDesc
, stmtHandle
, stmtHandleKey
);
if (sts == CEE_SUCCESS)
sts = pnode->send_response(buffer, message_length, call_id_);
SRVRTRACE_EXIT(FILE_OIOM+11);
return sts;
} // end odbc_SQLSrvr_Execute_ts_res_