public void controlPortal(boolean b)
                {
                     DataOutputStream dos=null;
                    if(b==true)
                    {

                    try {
                        dos = new DataOutputStream(socket.getOutputStream());
                        dos.writeUTF("abrirPortal");
                    } catch (IOException ex) {
                       System.out.println("conexion");
                    }
                    }else
                    {
                         try {
                        dos = new DataOutputStream(socket.getOutputStream());
                        dos.writeUTF("cerrarPortal");
                    } catch (IOException ex) {
                       System.out.println("conexion");
                    }
                    }
                }