⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcnotifywin.cpp

📁 dk1游戏的原代码文件,完整.编译系统redhat7.3,mysql 3.23 ,luascript v4.0 support
💻 CPP
字号:
//////////////////////////////////////////////////////////////////////////////// Filename    : GCNotifyWin.cpp // Written By  : excel96// Description ://////////////////////////////////////////////////////////////////////////////#include "GCNotifyWin.h"void GCNotifyWin::read ( SocketInputStream & iStream ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			iStream.read( m_GiftID );	BYTE szMessage;	iStream.read( szMessage );	if ( szMessage == 0 )		throw InvalidProtocolException("szMessage == 0");	if ( szMessage > 2048 )		throw InvalidProtocolException("too large message length");	iStream.read( m_Name , szMessage );	__END_CATCH}		    void GCNotifyWin::write ( SocketOutputStream & oStream ) const      throw ( ProtocolException , Error ){	__BEGIN_TRY			oStream.write( m_GiftID );	BYTE szMessage = m_Name.size();	if ( szMessage == 0 )		throw InvalidProtocolException("szMessage == 0");	if ( szMessage > 2048 )		throw InvalidProtocolException("too large message length");	oStream.write( szMessage );	oStream.write( m_Name );	__END_CATCH}void GCNotifyWin::execute ( Player * pPlayer ) 	 throw ( ProtocolException , Error ){	__BEGIN_TRY			GCNotifyWinHandler::execute( this , pPlayer );	__END_CATCH}string GCNotifyWin::toString () const       throw (){	__BEGIN_TRY			StringStream msg;	msg << "GCNotifyWin("		<< "ObjectID:" << m_GiftID 		<< ",Message:" << m_Name 		<< ")" ;	return msg.toString();			__END_CATCH}

⌨️ 快捷键说明

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