private void startConnection(bool withAI) { if (connections.ContainsKey(key())) { connections[key()].Dispose(); connections.Remove(key()); } try { tryConnect(2); return; } catch (SocketException) { TTTUtility.startJavaServer(withAI); } tryConnect(5); }
public string startAI() { TTTUtility.startJavaServer(true); return("started server - with AI"); }
public string start() { TTTUtility.startJavaServer(false); return("started server"); }