	public:
		int localsid;
		int roleid;
		Octets newname;
		int retcode;
		enum { PROTOCOL_TYPE = PROTOCOL_PLAYERRENAME_RE };
	public:
		PlayerRename_Re() { type = PROTOCOL_PLAYERRENAME_RE; }
		PlayerRename_Re(void*) : Protocol(PROTOCOL_PLAYERRENAME_RE) { }
		PlayerRename_Re (int l_localsid,int l_roleid,const Octets& l_newname = Octets(),
			int l_retcode = -1)
			 : localsid(l_localsid),roleid(l_roleid),newname(l_newname)
			,retcode(l_retcode)
		{
			type = PROTOCOL_PLAYERRENAME_RE;
		}

		PlayerRename_Re(const PlayerRename_Re &rhs)
			: Protocol(rhs),localsid(rhs.localsid),roleid(rhs.roleid),newname(rhs.newname)
			,retcode(rhs.retcode) { }

		GNET::Protocol *Clone() const { return new PlayerRename_Re(*this); }

		OctetsStream& marshal(OctetsStream & os) const
		{
			os << localsid;
			os << roleid;
			os << newname;
			os << retcode;
			return os;
		}

		const OctetsStream& unmarshal(const OctetsStream &os)
		{
			os >> localsid;
			os >> roleid;
			os >> newname;
			os >> retcode;
			return os;
		}

		int PriorPolicy( ) const { return 1; }

		bool SizePolicy(size_t size) const { return size <= 128; }
