	public:
		int roleid;
		int localsid;
		int shoptype;
		enum { PROTOCOL_TYPE = PROTOCOL_PSHOPLIST };
	public:
		PShopList() { type = PROTOCOL_PSHOPLIST; }
		PShopList(void*) : Protocol(PROTOCOL_PSHOPLIST) { }
		PShopList (int l_roleid,int l_localsid,int l_shoptype = 0)
			 : roleid(l_roleid),localsid(l_localsid),shoptype(l_shoptype)
		{
			type = PROTOCOL_PSHOPLIST;
		}

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

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

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

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

		int PriorPolicy( ) const { return 1; }

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