private void Init(int param) { bool ok = ServerCoreLoader.InitSocketProServer(param); m_sps = this; m_onAccept = new DOnAccept(OnAccept); ServerCoreLoader.SetOnAccept(m_onAccept); m_onClose = new DOnClose(OnClose); ServerCoreLoader.SetOnClose(m_onClose); m_onIdle = new DOnIdle(OnIdle); ServerCoreLoader.SetOnIdle(m_onIdle); m_onIsPermitted = new DOnIsPermitted(IsPermitted); ServerCoreLoader.SetOnIsPermitted(m_onIsPermitted); m_shc = new DOnSSLHandShakeCompleted(OnSSLShakeCompleted); ServerCoreLoader.SetOnSSLHandShakeCompleted(m_shc); }