private void Register(Packet inPacket) { ServerRegsitrationResponse response = (ServerRegsitrationResponse)inPacket.ReadByte(); switch (response) { case ServerRegsitrationResponse.Valid: { WvsLogin.Listen(); WvsLogin.CenterConnectionDone.Set(); Log.SkipLine(); Log.Success("Registered Login Server."); Log.SkipLine(); } break; default: { Log.Error(ServerRegistrationResponseResolver.Explain(response)); WvsLogin.Stop(); } break; } }
public void Stop() { TimerUpdate.Stop(); TimerPing.Stop(); WvsLogin.Stop(); WvsShop.Stop(); for (int i = 0; i < WvsGames.Length; i++) { WvsGames[i].Stop(); } Log.Info("[WvsCenter] Stopped"); }
public static void Main() { try { WvsLogin.CenterConnection = new CenterServer(new IPEndPoint( Settings.GetIPAddress("Center/IP"), Settings.GetInt("Center/Port")), Settings.GetString("Center/SecurityCode")); WvsLogin.CenterConnection.Loop(); } catch (Exception e) { Log.Error("Server connection failed: \n{0}", e.Message); WvsLogin.Stop(); } finally { WvsLogin.CenterConnectionDone.Set(); } }
public void Stop() { m_login.Stop(); m_games.ToList().ForEach(x => x.Stop()); }
protected override void Terminate() { WvsLogin.Stop(); }
protected override void StopServer() { WvsLogin.Stop(); }