SecureLayer.connect(server);
this.connected = true;
rdp_send_client_info(connect_flags, domain, username, password, command, directory);
} // Handle an unresolvable hostname
catch (UnknownHostException e) {
throw new ConnectionException("Could not resolve host name: " + server);
} // Handle a refused connection
catch (ConnectException e) {
throw new ConnectionException("Connection refused when trying to connect to " + server + " on port " + RDPConnection.conf.port);
} // Handle a timeout on connecting
catch (NoRouteToHostException e) {
throw new ConnectionException("Connection timed out when attempting to connect to " + server);
} catch (IOException e) {
throw new ConnectionException("Connection Failed");
} catch (RdesktopException ex) {
java.util.logging.Logger.getLogger(ARDP5.class.getName()).log(Level.SEVERE, null, ex);
} catch (CryptoException ex) {
java.util.logging.Logger.getLogger(ARDP5.class.getName()).log(Level.SEVERE, null, ex);
} catch (OrderException ex) {