Beispiel #1
0
        public override Object Clone()
        {
            DirInfo obj = new DirInfo();
			obj.serverList = (Octets)serverList.Clone();
			obj.version = (Octets)version.Clone();
			obj.versionList = (Octets)versionList.Clone();
			obj.serverListLength = serverListLength;
			obj.versionLength = versionLength;
			obj.versionListLength = versionListLength;
            return obj;
        }
Beispiel #2
0
        public override void OnRecvProtocol(Session session, Protocol protocol)
        {
			//UnityEngine.Debug.Log("DirClient:OnRecvProtocol. procotol type:" + protocol.getProtocolType().ToString());
            if(protocol.getProtocolType()==DirInfo.PROTOCOL_TYPE)
		    {
                DirInfo p = protocol as DirInfo;
                if(p!=null)
                {
			        Close(session);
					m_dirInfo = p;
					m_requesting = false;
                }
		    }
        }