当前位置: 首页>>代码示例>>C++>>正文


C++ SRVRTRACE_ENTER函数代码示例

本文整理汇总了C++中SRVRTRACE_ENTER函数的典型用法代码示例。如果您正苦于以下问题:C++ SRVRTRACE_ENTER函数的具体用法?C++ SRVRTRACE_ENTER怎么用?C++ SRVRTRACE_ENTER使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SRVRTRACE_ENTER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SRVRTRACE_ENTER

//===================== CTempMemory_list ==================================
CTempMemory_list::CTempMemory_list()
{
	SRVRTRACE_ENTER(FILE_TNSPTB+6);
	list=NULL;
	m_list_length = 0;
	SRVRTRACE_EXIT(FILE_TNSPTB+6);
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:8,代码来源:TransportBase.cpp

示例2: 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;
}
开发者ID:RuoYuHP,项目名称:incubator-trafodion,代码行数:26,代码来源:TCPIPSystemSrvr.cpp

示例3: 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;
}
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:31,代码来源:odbcs_srvr_res.cpp

示例4: 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_()
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:34,代码来源:odbcs_srvr_res.cpp

示例5: SRVRTRACE_ENTER

CTimer_list::CTimer_list()
{
	SRVRTRACE_ENTER(FILE_LSN+3);
	list=NULL;
	memset(&m_timer_handle,0,sizeof(CEE_handle_def));
	SRVRTRACE_EXIT(FILE_LSN+3);
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:7,代码来源:Listener.cpp

示例6: 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;
}
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:33,代码来源:odbcs_srvr_res.cpp

示例7: 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);
}
开发者ID:RuoYuHP,项目名称:incubator-trafodion,代码行数:34,代码来源:TCPIPSystemSrvr.cpp

示例8: 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;
}
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:27,代码来源:odbcs_srvr_res.cpp

示例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);
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:7,代码来源:TransportBase.cpp

示例10: 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);
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:9,代码来源:Listener.cpp

示例11: 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;
}
开发者ID:AlexPeng19,项目名称:incubator-trafodion,代码行数:10,代码来源:Listener_srvr.cpp

示例12: odbc_SQLSrvr_Prepare_ts_res_

CEE_status
odbc_SQLSrvr_Prepare_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 sqlQueryType
  , /* In   */ IDL_long stmtHandleKey
  , /* In   */ IDL_long estimatedCost
  , /* In   */ IDL_long inputDescLength
  , /* In   */ BYTE *inputDesc
  , /* In   */ IDL_long outputDescLength
  , /* In   */ BYTE *outputDesc
 )
{
	SRVRTRACE_ENTER(FILE_OIOM+11);
	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_Prepare_param_res_(
			  pnode
			, buffer
			, message_length
			, returnCode
			, sqlWarningOrErrorLength
			, sqlWarningOrError
			, sqlQueryType
			, stmtHandleKey
			, estimatedCost
			, inputDescLength
			, inputDesc
			, outputDescLength
			, outputDesc
	);

	if (sts == CEE_SUCCESS)
	{
		sts = pnode->send_response(buffer, message_length, call_id_);
	}
	SRVRTRACE_EXIT(FILE_OIOM+11);
	return sts;
} /* odbc_SQLSrvr_Prepare_ts_res_() */
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:52,代码来源:odbcs_srvr_res.cpp

示例13: 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_
开发者ID:qwertyioz,项目名称:incubator-trafodion,代码行数:52,代码来源:odbcs_srvr_res.cpp

示例14: BUILD_TCPIP_REQUEST

void BUILD_TCPIP_REQUEST(CTCPIPSystemSrvr* pnode)
{
	SRVRTRACE_ENTER(FILE_TSS+18);
	CEE_tag_def* objtag_ = (CEE_tag_def*)pnode;
	const CEE_handle_def *call_id_ = &pnode->m_call_id;
	short operation_id = pnode->m_rhdr.operation_id;
	short tx_handle[10];

	if(pnode->m_trans_begin_tag != 0 && GETTRANSID(&tx_handle[0]) != 0)
		RESUMETRANSACTION(pnode->m_trans_begin_tag);
	DISPATCH_TCPIPRequest(objtag_, call_id_, operation_id);
	SRVRTRACE_EXIT(FILE_TSS+18);
}
开发者ID:RuoYuHP,项目名称:incubator-trafodion,代码行数:13,代码来源:TCPIPSystemSrvr.cpp

示例15: 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;
}
开发者ID:RuoYuHP,项目名称:incubator-trafodion,代码行数:51,代码来源:TCPIPSystemSrvr.cpp


注:本文中的SRVRTRACE_ENTER函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。