ucupdate.cpp

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

CPP
75
字号
//--------------------------------------------------------------------------------// // Filename    : UCUpdate.cpp// Written By  : Reiot// Description : // ////////////////////////////////////////////////////////////////////////--------------------------------------------------------------------------------// include files#include "UCUpdate.h"//--------------------------------------------------------------------------------// read from socket input stream//--------------------------------------------------------------------------------void UCUpdate::read ( Socket * pSocket )	throw ( ProtocolException , Error ){	__BEGIN_TRY	//--------------------------------------------------------------------------------	// read resource	//--------------------------------------------------------------------------------	m_Resource.read( pSocket );	__END_CATCH}//--------------------------------------------------------------------------------// write to socket output stream//--------------------------------------------------------------------------------void UCUpdate::write ( Socket * pSocket ) const	throw ( ProtocolException , Error ){	__BEGIN_TRY	//--------------------------------------------------------------------------------	// write resource	//--------------------------------------------------------------------------------	m_Resource.write( pSocket );	__END_CATCH}//--------------------------------------------------------------------------------// execute packet's handler//--------------------------------------------------------------------------------void UCUpdate::execute ( Player * pPlayer ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			UCUpdateHandler::execute( this , pPlayer );			__END_CATCH}//--------------------------------------------------------------------------------// get debug string//--------------------------------------------------------------------------------string UCUpdate::toString () const	throw (){	StringStream msg;	msg << "UCUpdate("		<< m_Resource.toString()		<< ")";	return msg.toString();}

⌨️ 快捷键说明

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