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

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

		GNET::Protocol *Clone() const { return new StockAccount(*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 <= 64; }
