📄 ucupdatelist.cpp
字号:
//--------------------------------------------------------------------------------// // 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -