internal void InitiatePortalServerConnection(string address) { try { Console.Write("> Opening Connection to Server: DmogPortalServer... "); GPSConnection = new GamePortalServerConnection(); GPSConnection.InitiateConnection(this, address); Console.WriteLine("OK!"); } catch (ServerConnectionException ex) { Console.WriteLine("ERROR!"); throw ex; } }
internal void ClosePortalServerConnection() { try { Console.Write("> Closing Connection to Server: DmogPortalServer... "); if (GPSConnection != null) { GPSConnection.CloseConnection(); GPSConnection = null; } Console.WriteLine("OK!"); } catch (ServerConnectionException ex) { Console.WriteLine("ERROR!"); throw ex; } }