Exemplo n.º 1
0
 public static void main(String args[]) throws UnknownHostException, IOException {
   int puerto = 44441;
   Socket s = new Socket("localhost", puerto);
   Cliente hiloC = new Cliente(s);
   hiloC.setBounds(0, 0, 540, 400);
   hiloC.setVisible(true);
   new Thread(hiloC).start();
 }
Exemplo n.º 2
0
 @Override
 public void iniciarServicos(String keystore, String enderecoPasta, String nome) throws Exception {
   try {
     Cliente cliente = new Cliente(keystore, enderecoPasta, nome, senha, host);
     cliente.socket = cliente.criaSSLSocket(host);
     cliente.run();
   } catch (Exception e) {
     System.out.println("Falha ao iniciar os serviços do cliente.Erro:" + e.getMessage());
   }
 }