	public:
		int retcode;
		int dst_fid;
		unsigned int localsid;
		enum { PROTOCOL_TYPE = PROTOCOL_FACTIONALLIANCEAPPLY_RE };
	public:
		FactionAllianceApply_Re() { type = PROTOCOL_FACTIONALLIANCEAPPLY_RE; }
		FactionAllianceApply_Re(void*) : Protocol(PROTOCOL_FACTIONALLIANCEAPPLY_RE) { }
		FactionAllianceApply_Re (int l_retcode,int l_dst_fid,unsigned int l_localsid)
			 : retcode(l_retcode),dst_fid(l_dst_fid),localsid(l_localsid)
		{
			type = PROTOCOL_FACTIONALLIANCEAPPLY_RE;
		}

		FactionAllianceApply_Re(const FactionAllianceApply_Re &rhs)
			: Protocol(rhs),retcode(rhs.retcode),dst_fid(rhs.dst_fid),localsid(rhs.localsid) { }

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

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

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

		int PriorPolicy( ) const { return 1; }

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