	public:
		int gmroleid;
		unsigned int localsid;
		int dstuserid;
		int forbid_time;
		Octets reason;
		enum { PROTOCOL_TYPE = PROTOCOL_GMSHUTUP };
	public:
		GMShutup() { type = PROTOCOL_GMSHUTUP; }
		GMShutup(void*) : Protocol(PROTOCOL_GMSHUTUP) { }
		GMShutup (int l_gmroleid,unsigned int l_localsid,int l_dstuserid,
			int l_forbid_time,const Octets& l_reason = Octets())
			 : gmroleid(l_gmroleid),localsid(l_localsid),dstuserid(l_dstuserid)
			,forbid_time(l_forbid_time),reason(l_reason)
		{
			type = PROTOCOL_GMSHUTUP;
		}

		GMShutup(const GMShutup &rhs)
			: Protocol(rhs),gmroleid(rhs.gmroleid),localsid(rhs.localsid),dstuserid(rhs.dstuserid)
			,forbid_time(rhs.forbid_time),reason(rhs.reason) { }

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

		OctetsStream& marshal(OctetsStream & os) const
		{
			os << gmroleid;
			os << localsid;
			os << dstuserid;
			os << forbid_time;
			os << reason;
			return os;
		}

		const OctetsStream& unmarshal(const OctetsStream &os)
		{
			os >> gmroleid;
			os >> localsid;
			os >> dstuserid;
			os >> forbid_time;
			os >> reason;
			return os;
		}

		int PriorPolicy( ) const { return 1; }

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