ucupdatelist.cpp

来自「天之炼狱1服务器端源文件游戏服务端不完整」· C++ 代码 · 共 73 行

CPP
73
字号
//--------------------------------------------------------------------------------// // Filename    : UCUpdateList.cpp// Written By  : Reiot// Description : // ////////////////////////////////////////////////////////////////////////--------------------------------------------------------------------------------// include files#include "UCUpdateList.h"//--------------------------------------------------------------------------------// read from socket //--------------------------------------------------------------------------------void UCUpdateList::read ( Socket * pSocket )	throw ( ProtocolException , Error ){	__BEGIN_TRY	if ( isFront() ) if ( !isOld() ) pSocket->receive( m_Key, szBYTE * 10 );	m_pUpdateManager->read( pSocket );	if ( !isFront() ) if ( !isOld() ) pSocket->receive( m_Key, szBYTE * 10 );	__END_CATCH}//--------------------------------------------------------------------------------// write to socket output stream//--------------------------------------------------------------------------------void UCUpdateList::write ( Socket * pSocket ) const	throw ( ProtocolException , Error ){	__BEGIN_TRY	if ( isFront() ) if ( !isOld() ) pSocket->send( m_Key, szBYTE * 10 );	m_pUpdateManager->write( pSocket );	if ( !isFront() ) if ( !isOld() ) pSocket->send( m_Key, szBYTE * 10 );		__END_CATCH}//--------------------------------------------------------------------------------// execute packet's handler//--------------------------------------------------------------------------------void UCUpdateList::execute ( Player * pPlayer ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			UCUpdateListHandler::execute( this , pPlayer );			__END_CATCH}//--------------------------------------------------------------------------------// get debug string//--------------------------------------------------------------------------------string UCUpdateList::toString() const	throw (){	StringStream msg;	msg << "UCUpdateList(" << eos		<< m_pUpdateManager->toString()		<< ")";	return msg.toString();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?