Replication of the object - sharing multiple files

Hi all,

When file sharing I create the shared file data blocks, then

call addHaveObjects

netGroup.addHaveObjects (0, packetLenght);

where packetLength is the number of actual data segments are split.

I added headphones for the request and the result

NetGroup.Replication.Request

netGroup.writeRequestedObject (event.info.requestID, object.chunks [event.info.index]);

NetGroup.Replication.Fetch.Result

in the info.code I would iterate through the pieces and addWantObject(i,i), where i is the current chunk, like that I would add all the pieces to addWantObject

Problem

This works very well when sharing file for other peers, but only first time, when I repeat the scenario once more for the same or different, files that nothing happens.

NetGroup.Replication.Request - is never called

Source code around, that I follow to recreate the functionality of file sharing can be found at

http://www.flashrealtime.com/file-share-object-replication-Flash-P2P/

Index of the object are unique for the Group and they must always point to the same data of the object.

When you do...

netGroup.addHaveObjects (0, packetLenght);

.. you're stating "I have these pieces of information ready to share" the Group
Your second call with the same parameters have no effect, because you already said that and the group "is already" you have those. given that peers who wanted already they have these recoveries they are no longer needed and NetGroup.Replication.Request is not called again

For a different file, you must assign a different id for 'startIndex' and 'endIndex' and make sure that beaches overlap ever; given your piece of code, it looks like you always start at 0; in the whole of the group never send different data in the same index of the object

Tags: Adobe

Similar Questions

  • An order has been cancelled or stopped during the processing of multiple files

    I use Photoshop elements 13. I'll save the files from my camera on my desk. Upload photos, edit them, and then while trying to save the changes, I get an error message: "an order has been cancelled or stopped during the processing of multiple files. Continue with the next file or stop? "How I lost my job. a large part

    I was not able to find much about this error online then consulted for relief in this case.

    Thank you in advance!

    Partial solution.

    The problem occurs when the application is in the State 'restore down' (the middle between ____ and the X button). If I have the maximized application files do not delete.

    Just an info.

  • Replication of the object read-only?

    Is there a possibility to protect by password, or otherwise put to the replication of the unalterable object similar to the display and publication?

    My concern is that, given total freedom of writeRequestedObject() data, some peers can (voluntarily or not) are used to bad/corrupt data in replication. It will be taken up by others and most replicated. If the data element is part of a larger it itself will be corrupted.

    If there is no way to enforce the read-only, adding a hash of integrity at the end data sounds like a good idea. Receiver will throw the incorrect data and wait for another replica. Which leads to the following question:

    Say a peer is willing to items #1 to #5. When she received #3 a neighbor could this be received again from others until reported (removeWantObjects) that's is more sought or will be the first receive the lock want to #3 and only wait than others. In this case a removeWantObjects followed by addWantObjects will give peer a chance to get a new replica of the #3?

    Thanks for any idea or ideas.

    so that replication of the object to work, everyone in the mesh must be able to NetGroup.writeRequestedObject ().

    in your application logic, you can add integrity checks to the objects (perhaps with a manifesto or a directory that lists the hashes of each object).

    you will not receive an object with a specific index from a peer at a time.  Once you receive the item, its index is removed from your set of envy.  You can perform a check for validity against the object, and if it is not valid, you can re - like it.  at the moment there is no way to blacklist a counterpart of misconduct which gives you damaged data, so you might end up becoming again the same object (corrupt/invalid).

    After receiving an object and determine what it * is * valid, you add it to your game 'a', and then only your neighbors begin to you request for this object.  in this way, only valid objects will be spread across the group.

  • Replication of the object - how to propagate objects?

    Given the following scenario:

    A, B, C are peer

    A - B are connected

    B - C are connected

    A - C are NOT connected

    A #1 object

    C wants to object #1

    B (if any) will pass the object of A to C, or nothing will happen except changing the topology?

    Thank you.

    so that C get the #1 object, B must get first.  B must wish that object #1 that he asked it to A, and then send it to you.  Once B receives the object, he must indicate he did.  Once B has #1, C go see it and ask B.

    replication of the object works only if everyone in the group is making efforts to have all the clues, and they share the clues they have.

  • What is the best way to adjust the brightness in multiple files using elements 13?

    I have about 100 JPEGs that I need to cheer up.  I need to adjust the brightness in "100" on each; is there a quick way?  "Treat multiple files" does not...

    Thank you!

    john_oc wrote:

    I have about 100 JPEGs that I need to cheer up.  I need to adjust the brightness in "100" on each; is there a quick way?  "Treat multiple files" does not...

    Thank you!

    Simple and powerful: use the ACR (Camera raw).

    Depending on the power and the amount of RAM on your computer, you can now open and edit multiple files at the same time in the ACR module.
    Use the menu file/open in camera raw.

    Select a batch of files (say 20 to begin by)

    Select all the files in the camera roll on the left.

    When they are highlighted, you will notice that the ACR module shows its AutoCorrect settings. Generally the brightness of your images will already be improved.

    The changes you apply to the sliders will change all the images highlighted.

    Take advantage of the opportunity to refine all the other sliders made highlights/shadows, clarity, vibrance, sharpening or noise reduction...

    Tip:

    What you do in the ACR module do not alter the original jpeg pixels. Only the parameters are saved, which is called parametric edition. So after this editing session, when you save the changes ('Done' button), you are able to reopen the jpeg (it will open automatically in ACR, even from the Organizer). You will be able to start editing with either:

    1 - the values of the original jpeg (turn all the sliders to zero, auto or custom in the right panel).

    2 - the AutoCorrect default CAB
    3 - your latest changes (settings file)
    4 - the session settings of most recent edition (which is useful to apply to several image consecutively).

    These settings are saved in the jpeg metadata section. No need to create a version set at this stage.

    Important: even if you are happy with the automatic settings default to ACR, apply a little change of your choice so that the settings are saved in the metadata section when you click on 'Done '.

    You have now edited your first batch. If you use the orgnizer, you might want to "update thumbnails', which show the improvement of brightness in thumbnails. You are ready to make the necessary changes to individual files, such as cropping or sharpening in ACR. Instead of clicking "Done", you can click on 'Open' to open the file in the Editor (you can change in 8 or 16-bit). You must go into the editor to apply other changes as layers, local adjustments. you use the editor to register in any other format file or print.

    For the next batch, the mounting parameters are available in the dropdown to the right (previous conversion). Open files, highlight all, select previous conversion, click 'Done '. Wait for the settings to be saved in jpeg files.

    In a situation where you have 100 files JPEG, the workflow that the above is by far the fastest and most flexible you can use. Imagine you have a white balance bad setting of your camera, you can imagine the time you need by editing individual files in the editor?

  • Problem VLC media player - option of the context menu "add to vlc media player playlist" disappear in the selection of multiple files.

    OK, here's my problem. I installed VLC. It works very well. I have 'Add to playlist in vlc meadia player' on the pop-up menu file.

    PROBLEM: If I select more than 16 files and then "Add to vlc meadia Player playlist" disappear from the file context menu.

    ANNOYING: This stupid Windows Media Player is still there.

    QUESTION: Why vlc disappear from the file context menu if I select more then 16 files but wmp doesn't?  Is M$ trying to force people to use WMP?

    I also did my OWN program and he added in the context menu, and I discovered that my OWN program has also 16 files limit.

    Why windows deletes non MS program context menu, if I select more than 16 files? How can I solve this problem? I want to have my custom context menu program, even if I select more than 16 files.

    How to fix this?

    Hello
     
    I ask you to post this question on the Microsoft Development Network forums.
    Here is the link:
    http://social.msdn.Microsoft.com/forums/en/windowspro-audiodevelopment/threads
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Selection of file problem when you add the keyword to multiple files

    Hello

    I noticed a problem that I have updated to the latest version of bridge CC (6.1.1.10) (maybe the problem was there before, but I don't notice it)

    When I apply a change in key words for several files at the same time, I note that each updated file (a) is selected. The result is that I can not choose any new file right after I do a keyword change, because my selection is immediately to the file updated by my last request. I have to wait for my keyword change request to stabilize a selection of file not then continue to work.

    Is it possible to disable this behavior (which occur until CS6 Bridge)?

    It's very annoying because if I requested a change of keyword for 1000 records for example, it takes a while to run, and I can't do anything else during this time...

    What is a 'normal' behavior or just a bug?

    Any help welcome!

    It is a normal behavior. I saw him with the metadata entry. Normally it's pretty fast, but with 1000 files, it takes time. Must edit and save all the XMP information in files, which may take some time, depending on your system.

  • Lots of application lib of the object across multiple forms

    I created a series of was visual attributes in the object library, their designated as smartclasses. I have more than 200 types for which I would like to implement these standards. Is there a way to programatically set each accordingly. For example, I have a smartclass called 'canvas_attribute '. Can I run a script that will change the Visual attribute group = "canvas_attribute" for the paintings of al for all forms?
    Any suggestions?

    Depending on your unknown version of the forms, you can use jdapi (http://www.oracle.com/technetwork/developer-tools/forms/documentation/1012jdapidoc-131956.zip) or the openAPI (http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/openapi/c_openapi.html&vtTopicId=) to do this in the batch.

    see you soon

  • Opening of the local shared .html file in the browser?

    My WebWorks application creates and saves the test.html file in the shared folder to 'blackberry.io.dir.appDirs.shared.documents.path' successfully. If I try to open this file in the browser of PB, like this

    var filePath = blackberry.io.dir.appDirs.shared.documents.path + "/ test.html ';

    var args = new blackberry.invoke.BrowserArguments (filePath);
    BlackBerry.Invoke.Invoke (blackberry.invoke.APP_BROWSER, args);

    can I get an exception with the message: 'undefined '; I guess that the args object is not created. The browser is not started.

    However, if I run the browser PB manually, navigate to the file test.html in the 'file:///accounts/1000/shared/' folder, I can open it.

    What Miss me? Thank you.

    More surprises every day... Apparently, the browser of PB does not file:/// protocol support; He expects a URL that begins with http:// or https://. But I managed to write my own code to open the .html file in the browser of PB. However, it's disappointing to do this kind of "gymnastics" to activate the basic features.

  • Sharing multiple files Amoungst VMs in ESX 3.5

    I / we need to share files between multiple virtual machines.   I find that I am sort of stuck between the fact that ESX doesn't support NTFS and nothing but supports the ESX VMFS.  Ideally, what I would like is to have is a shared NTFS volume / share accessible to all computer virtual running Windows server 2003 or 2008 DataStore which has direct access, i.e. not going on the network, since it would decrease performance.  A shared VMFS data store would work, but in native mode Windows won't make the VMFS volume.

    Any suggestions?

    Without clustering technology, it is not practical to share a volume between several virtual machines.  Since each vm will think that the disc is owned by them, it will not recognize the changes made by any other virtual machine.  By example, if the vmA and vmB share a disc, and both start at the same time, they are both aware of the same data on this disc.  If after the start, vmA wrote a folder named test on drive, vmB will not see this change because it was not made by this virtual machine.  If vmB now writes a folder named test on the same disc, now you're in trouble.  vmA and vmB have both write a folder named test on the same disc.  Thus, no new file is seen by the other vm.  If you do not change all the data on the disc, then you will be fine, most of the time.  If you are trying to write, then you risk data corruption.

    -KjB

    VMware vExpert

  • Progress based on the list of the folder with multiple files in a folder

    I use the function list folder of LabVIEW and want to see progress, because it takes a long time (20 seconds) to load all the files in an array.

    How can I do this?

    See ListFolder exemple.jpg

    Regards Ben Arts

    Ben Arts wrote:

    I showed a small image is everything to do the job.

    There are about 3000 files and the file is a server.

    Well, who would certainly do, as much as you said that it is on a server, so a network drive.

    In this case, I was looking for a progress for the folder in the list to use it in an indicator of progress for the user.

    Unfortunately, there is no mechanism for it. Maybe you can organize the files so that you can get a list of them in 'chunks', based on a search pattern. Or perhaps you can organize them into folders so that you dynamically fill subfolders when a user wants to see what is inside.

    Cancellation: having 3000 + files in a folder is a bad way to orgranize files, especially on a server, as leading to a huge amount of e/s files and network I/O on the server load.

  • How to change the names of multiple files at the same time?

    Is it possible to edit several file names without doing it individually. I want to remove the same three words of 48 file names.

    Well... actually, you received a definitive answer.

    Windows XP does not batch file name
    editing as you describe it. Bulk Rename utility
    already advanced would be a good choice.

    You used the words 'each file name' as in 'everything '...
    a lot would be simply a group of selected files...
    in other words... "all" highlighted.

    And... the Bulk Rename Utility freeware can do
    but at the time you download the app and learn how
    to use it you have renamed all the files manually.
    How long could it take? 10 or 15 minutes?

    In any case... Here is the link again.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Bulk Rename Utility
    http://www.bulkrenameutility.co.UK/download.php
    (Windows XP, Vista, 7)

    Bulk Rename Utility tutorial
    http://www.bulkrenameutility.co.UK/tutorial.php

  • the names of multiple files renaming

    Hello

    How can I add a word 'reception' at the beginning of several document names? In the command window?

    Reception mower.pdf mower.PDF

    Reception blower.pdf snow blower.pdf snow reports

    Thank you

    Reception mower.pdf mower.PDF

    Reception blower.pdf snow blower.pdf snow reports

    Thank you

    Here you go:

    for %a in (*. *) ren '% a' "reception % ~ na % ~ xa»

    Better to test the command in a disposable folder before going for the real thing.

  • The coding of multiple file - will not let me crop

    Hi everyone-

    Just start the phase of compression of my project (s) video of dance.

    During the addition of 70 + videos of Flash Video Encoder - I am able to do all the settings I want - except
    be able to 'Crop' of 4 pixels high, at bottom and sides (deinterlacing always showed issues up and down).

    It's fields are not active and doesn't let me to crop.

    Is this something I am doing wrong, or have I missed a step on the way?

    Please help us if you can!

    Kind regards

    Luke Wonderly

    There is no problem of reading about the cropping, just crops as much as you need to remove the pesky black borders around the video, there is nothing worse then that when I look at online video content.

  • How to open multiple files with the same extension in one program from the Explorer

    I frequently receive several JPG (or whatever extension) files to my clients.  On Windows XP, I could just highlight the files I want to open, and then click Open.  They would be so open to 1 program cascading.  This made it easy when comparing many images.  If I do the same thing in Windows 7, it opens the default program several times and puts 1 image of each open program.  It is Paint Shop Pro in my case.  Thus, instead of so-called images 5 open cascading in Paint Shop Pro... the computer open Paint Shop Pro 5 times with 1 image of each open version of the program.  I tried this search like crazy, but cannot find the right thread for an answer.  Most of the threads are on the opening of the different file types.  My question is only about the opening of multiple files with the same exact file inside 1 free program extension.

    Is this the same version of Paint Shop?

    One thing you might try is to open Paint Shop, then select and drag all the files in this window of the paint shop.  Various programs to manage this type of action differently from the DDE, but it might give you the expected results.

Maybe you are looking for