protected virtual void Dispose(bool disposing) { if (m_disposed) return; if (disposing) { if (null != m_desc) { m_desc.Dispose(); m_desc = null; } m_session = null; } m_disposed = true; }
public void RequestRegistServer(eServerType eFromServerType) { ServerSession ss = m_session as ServerSession; descOtherServer desc = new descOtherServer(); desc.m_eServerType = m_eToServerType; ss.m_descServer = desc; using (PT_Server_RegisterAtCenter_RQ fmp = new PT_Server_RegisterAtCenter_RQ()) { fmp.m_eServerType = eFromServerType; fmp.m_nSequence = m_nSequence; fmp.m_strIP = m_fromConfig.m_strPublicIP; fmp.m_nPort = m_fromConfig.m_nPort; SendPacket(fmp); } }