Sockets
Sockets
Programa Cliente
3
OutputStream aux = socketCli.getOutputStream();
DataOutputStream datos= new DataOutputStream( aux );
datos.writeUTF( "Hola cliente " +
numCliente+obtenerclima());
socketCli.close();
}
System.out.println("Demasiados clientes por hoy");
} catch( Exception x ) {
System.out.println( x.getMessage() );
}
}
public static void main( String[] arg ) {
new Servidor();
}
}