code: private void reconnect() throws IOException {
          // First ensure we're closed.
          close();
          
          // Attempt to re-open.
          try {
  			createSocket();
  		} catch (Exception e) {
  			e.printStackTrace();
  			throw new IOException("Cannot connect to server", e);
  		}
          m_inStream = m_socket.getInputStream();
          m_outStream = m_socket.getOutputStream();
      }
docs: Attempt to reconnect to the Doradus server