	public:
		int roleid;
		unsigned int localsid;
		enum { PROTOCOL_TYPE = PROTOCOL_GETSAVEDMSG };
	public:
		GetSavedMsg() { type = PROTOCOL_GETSAVEDMSG; }
		GetSavedMsg(void*) : Protocol(PROTOCOL_GETSAVEDMSG) { }
		GetSavedMsg (int l_roleid,unsigned int l_localsid)
			 : roleid(l_roleid),localsid(l_localsid)
		{
			type = PROTOCOL_GETSAVEDMSG;
		}

		GetSavedMsg(const GetSavedMsg &rhs)
			: Protocol(rhs),roleid(rhs.roleid),localsid(rhs.localsid) { }

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

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

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

		int PriorPolicy( ) const { return 1; }

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