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; }
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; } } }