public void Dispose() { if (m_sps != null) { ServerCoreLoader.UninitSocketProServer(); m_sps = null; } }
private void Clean() { if (m_sps != null) { ServerCoreLoader.SetOnAccept(null); ServerCoreLoader.SetOnClose(null); ServerCoreLoader.SetOnIdle(null); ServerCoreLoader.SetOnIsPermitted(null); ServerCoreLoader.SetOnSSLHandShakeCompleted(null); lock (CBaseService.m_csService) { if (CBaseService.m_bRegEvent) { ServerCoreLoader.SetThreadEvent(null); CBaseService.m_bRegEvent = false; } } m_sps = null; } }