Send a file to multiple hosts

Hello
I'm making a program which purpose is to do file system synchro from a reference host to multiple hosts (let's say 10 to 20 for instance).
That means that I will have to send the same file data to all of these.
All hosts are in the same private network.
The files I send could be big so I'm trying to optimize all this. That's why I'm thinking of UDP multicast to do this rather than TCP/IP sockets. However multicast is not that reliable as said in Custom Networking tutorial. So I may have to write a quite complex protocol to achive this.
So what do you think is the best solution ?
Thanks for your advice

Thanks for your advice.
My problem is that I have to spare bandwidth so I should not send the same file multiple times. A TCP connexion would. That's why I chose UDP.
I've got another question about UPD :
Let's say I'm transfering a huge file between server A and server B using UDP. Server A reads the file, splits it into datagrams then sends the packets to B. Now if A is much quicker than B, A will send datagrams quicker than B can process them. Couldn't there be some kind of overflow on B socket ? What will happend ? Packet loss ?
I guess I should make some kind of synchro to avoid this.

Similar Messages

  • Logic for sending data files to multiple instances of Central

    We are using Central Pro Output Server 5.6 with a single Central instance as of default installation on a Windows Server 2003. Data for the transaction files coming from our iSeries system via a printer queue (\\.\pipe\jetform\queuename)
    Now we want to be able to produce more documents from Central much faster and therefore setting up multiple instances of Central. The problem is then where to put the logic for choosing instances.
    The simplest way to do this would be to have iSeries to alternate the data files to different pipes (printer queues) for Central. But as we dont want to change our iSeries configuration for this, is there a way to solve this problem in Central?
    Any help with this is much appreciated

    Central provides no mechanism that I'm aware of that would do anything resembling the job distribution that you are wanting. Central is written to monitor it's input folders and process the files it finds there. Each instance is essentially separate from each other.
    Your source system will need to select the appropriate instance to be used. Either that or you will need to have something between the source system and Central that is doing the distribution. For example, you could have the source system write to a folder that is not being monitored by Central and write a program that runs as a service that does monitor that folder. This program would then distribute the files. The likely drawback of having an intermediary program is that you are likely to not end up getting the documents printed any faster than with a single instance.
    Another possible way, if the source system can create files with different file name extensions, would be to have them all written to the same folder and have each instance checking that particular folder but looking for files with different extensions. This might be problematic, though, because it might also end up with each instance watching the same "control" folder so that doing things like pausing Central would end up with no control of which instance was going to be paused.
    The default setting for Central has it pausing for 5 seconds if it completes a job and there are no more files waiting for it. If your jobs are not coming in faster than Central is processing them then you would be getting some of this delay for your jobs. You could reduce this time or even set Central to process a job as soon as it shows up. I don't know if version 5.6 still has the problem but an earlier version would not "see" a file if it happened to show up exactly when it was looking for more (it was probably showing up milli-seconds after Central looked). This caused that job to just sit there until the next job showed up.
    A major factor in getting the documents produced faster is going to be the speed and number of printers that they are going to - plus the number of pages in each document. For us, the single instance of Central that we are currently using can produce print much faster than our HP9050 printers (50 ppm) can actually print it.
    You must be doing a lot of forms or each job is doing a lot of processing. Our typical print job does 4 tasks (depending on the job this can include things like: passing the file through the transformation agent, updating a mainframe database, FTPing the file to another server for archiving, and producing the print). A typical job with 11 output pages takes only 2-3 seconds. We have a task that runs every morning that retrieves mainframe generated jobs. I just checked one of our servers and it processed 208 jobs in exactly 8 minutes (26 jobs per minute at an average of 2.3 seconds per job). We also thought we'd need multiple instances due to speed but that just isn't the case for us. We have other reasons to move to multiple instances but speed in not a major factor any more.

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Adapter file sender doesn't split file into multiple message

    Hi everybody.
    We are in PI 7.0 SP10.
    In adapter file sender, I want to split a file into multiple file.
    We use protocole "file content conversion"
    in the field "recordset per message", I put the value 10 to test.
    The file content 30 records .
    The result we have is the treatment is not split into multiple message .
    The treatment is made but with one message.
    I need  to treat big files.
    Is there some one who have an idea  why t doesn't work ?
    Thanks in advance for your help.
    Regards
    Edited by: Eric  KOralewski on Jun 25, 2009 3:14 PM

    Hi,
    have you specified recordset name......if not, then specify it.............
    in recordset structure, specify like RECORD,1 and not RECORD,*
    again test your scenario......if still your file data is not getting split, then ask your basis guys to do a full CPACache refresh using PIDIRUSER..........your basis guys will know how to do it..........then again test your scneario............
    Regards,
    Rajeev Gupta

  • One sender File to Multiple CC scenario

    Hi,
          Iam working on simple file to file Scenario in that iam using One sender file to multiple Receiver Communication Channel,plz help me out

    Hi,
    Configure one Sender File Communication and n Receiver Communication channel for n receivers.
    Also u need to have....
    1. n Receiver aggrement.
    2. n Interface determination
    3. 1 Receiver determination.
    Regards
    Santhosh
    Remember to set the thread to solved when you have received a solution

  • Multiple source files from multiple directories in sender CC

    Dear all,
    My requirrement is that ,I need to use multiple directories in sender CC (only one) and send the files to receivers.
    Kindly let me know how it can be done.
    Thanks,
    Srinivasa

    Hi,
    under advanced tab.............If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    ●      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    ○       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,...corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (&#8220;Example Value&#8221;) is set as the value for a specified variable.
    Thanks,
    Madhu

  • Picking files from multiple folders based on name send to destination folde

    Hi,
       I want to pick multiple files from multiple folders with one root folder. Based on file name I want to send it to diffirent folders. No need to go for message mapping. Can anyone suggest me.
    Thanks & Regards,
    Prasad Kotla.

    Hi Prasad,
    to pick the files from multiple source directory, can use "Advance Selection for Source File" in Sender CC.
    If you wand to develop a Scenario without Message mapping, develop a scenario as "Sender as Virtual receiver"
    This option is available in Sender agreement, just give the dummy name for Msg Interface and Namespace, Name defined should be same in Rec Agreement.
    Develop only: Sende CC, Receiver CC, SA, RA
    No need to develop ID and RD as no mapping is involved.
    If u want to send the files to different folders of receiver side, just develop the adapter module which changes the directory based on the sender filename.
    If the sender and receiver directory is same than check the "adapter specific Msg Attribute"  and "directory" checkbox in both the sender and receiver CC. in this case no need to develop Custom module for changing the directory. files will be automatically placed in the path they were picked from  sendor directory
    appreciate if useful
    regards,
    chandra shekhar

  • B2B Broadcasting : How to send a single file to multiple trading partners

    Oracle 10g B2B (10.1.2)
    I have a use case where I need to send a file to multple trading partner. Actually BPEL ftps a file to the B2B file server and B2B picks that file and needs to send it to multiple trading partners.
    I read through the blog http://blogs.oracle.com/oracleb2bgurus/2009/03/broadcast_feature_in_oracle_as.html and did the following change.
    1. Created a generic identifier : Grouping.
    2. Added this identifier to the relevant trading partner.
    3. Modified the business action to include the actionName=Grouping; for all the relevant Trading Partner which is supposed to get the file.
    4. Used the Group identifier in the Trading partner agreement.
    5. Redeployed the TPAs.
    Issue :
    As the file has to follow a convention <Toparty>_<DocumentType>_<RevNo>_<MessageType>_<MessageId>.txt , I am able to send the file to the trading partner for which I put the name in place of <ToParty> and <DocumentType>.
    Please let me know the exact steps to follow. any document would be of great help.
    Thanks
    Rajeev
    Edited by: user10680470 on Oct 13, 2009 12:34 AM

    Hi Anuj,
    Thanks for replying. I had tried both options.
    For first option it returned error stating it could not identify the trading partner.
    Second one was looking more promising but due to the DocumentType parameter in the filename which I was using as the DocumentType of any one of the business action action name of a trading partner, it was giving error. Is it possible to have the DocType for multiple trading partners, just a thought.
    I will try to explore more on the option 2 with the fileformat using the actionname.
    Meanwhile if you could find anything please let me know.
    Thanks a lot....
    Rajeev
    Edited by: user10680470 on Oct 13, 2009 2:47 AM

  • (RFC vs files), where Sender SAP and receiver multiple system

    Publish and Subscribe using  BPM or Without BPM (RFC vs files), where Sender SAP and receivers multiple system,.
    This is my 1st BPM scenario in sandbox system
    For this scenario
    I Created 2 Data types
    2 MT,
    Service interface:
    Request interface Mode:Asynchronous
    Abstract Req interface,Mode:Asynchronous
    Response Interface,Mode:Asynchronous
    Abstract Respomse Interface ,Mode:Aysnchronous
    Synchronous Interface ,Mode:Synchronous
    2 Message mapping for Req and Resp
    1 Operation Mapping
    BPM design: Plz find the attatchement
    Can anyone please help me how many Interface determinations,receiver determinations ,sender agreements,receiver agreements need to create for this.......
    It will be good if anyone send the BPM design flow for this.........
    can we do this scenario without BPM?
    Regards
    A.Muni kumar
    Edited by: Muni 1234 on Jan 31, 2012 10:24 AM

    Hi
    Receiver is FTP only.....
    SAP side is RFC.........
    RFC sender will be initiating the scenario, and there is receiver is File, PI should go to file directory and take the file then send it back to RFC as response.
    Sender: RFC
    Receiver: File
    1. is this scenario with condition based routing.. so that each time outof many receiver systems it will trigger any specific system.
    if above is the case then you can achive this without BPM also..
    Yes...its condition based routing...
    I Used async in this scenario.....sender side configurations also done....
    But when when I am triggering BAPI from SE37 I am getting an error
    Exception SYSTEM_FAILURE
    Message ID: 00 Message number: 341
    Message:
    Runtime error CALL_FUNCTION_NOT_FOUND has occurred
    How to Solve this????
    I checked the RFC destination which i created in TCP/IP..a nd i mentioned the same in se37 RFC target system..
    Connection is Ok
    Or we need to create proxy for MI and report for this?
    Edited by: Muni 1234 on Feb 1, 2012 8:38 AM

  • Script to ping multiple hosts and return domain info to a txt or csv file

    Hi,
    I wonder if anyone can help.  I need a script that will allow me to ping multiple hosts (all listed on seperate lines in a txt file) and return IP, server up\down and domain info to a txt or ideally a csv file.
    I'm sure this must have been done\requested before but I can't seem to find the correct script anywhere
    Thanks for your help
    Mal

    Try this modification:
    $result=@()
    Get-Content p:\list.TXT | %{
    $start_name = $_
    $conn = Test-Connection -ComputerName $_ -Quiet
    if(-not $conn)
    $start_name = ""
    Try
    $dns = [System.Net.Dns]::GetHostEntry($_)
    $dns_host = $dns.HostName
    $dns_ip = $dns.AddressList | select -ExpandProperty IPAddressToString
    catch
    $dns_host = "invalid host name" #as jrich proposed :)
    $dns_ip = "invalid host name" #as jrich proposed :)
    $start_name = ""
    $HostObj = New-Object PSObject -Property @{
    Host = $start_name
    IP = $dns_ip
    DNSHost = $dns_host
    Active = $conn
    $result += $HostObj
    $result | Export-Csv p:list.csv -NoTypeInformation

  • HOW to send the SPlitted files to multiple Receiver On some Condition ?

    Hi all,
    It's Urgent,
    Aim of our scenario
    the single file is splited according to company code and creates as separate file
    previously it was sending to same server..
    we have got the CHANGE REQUEST ON THIS SCENARIO that to route to TWO FTP servers which is splitting according to company code.
    But we are not changing any objects in IR
    we have only need to change in ID
    as now we are using on BUSINESS SERVICE which we have created in ID itself we are not using the BUSINESS SYSTEM created in SLD
    We are using ONLY one INBound interface , Interface MApping , Message MAPPing .(no cahnges in IR)
    Sender XML Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileEwadCompany occurence1-1
    xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
    <COMPANYEWADDATA> 0 -unbound occurence
    <AUDIT_STAMP/>
    <SEQNO/>
    <SE_TYPE/>
    <RECNAME_AUDIT/>
    <FLD_NAME/>
    <OLDVALUE/>
    <NEWVALUE/>
    <KEY1/>
    <KEY2/>
    <KEY3/>
    <KEY4/>
    <COMPANY/>
    <SCE_PAYROLL_CODE/>
    <ALTER_EMPLID/>
    </COMPANYEWADDATA>
    </ns1:MT_FileEwadCompany>
    </ns0:Message1>
    </ns0:Messages>
    Receiver XML Structure
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileEwadCompany 0-to-unbound
    xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
    <COMPANYEWADDATA>0-unbound
    <AUDIT_STAMP/>
    <SEQNO/>
    <SE_TYPE/>
    <RECNAME_AUDIT/>
    <FLD_NAME/>
    <OLDVALUE/>
    <NEWVALUE/>
    <KEY1/>
    <KEY2/>
    <KEY3/>
    <KEY4/>
    <COMPANY/>
    <SCE_PAYROLL_CODE/>
    <ALTER_EMPLID/>
    </COMPANYEWADDATA>
    </ns1:MT_FileEwadCompany>
    </ns0:Message1>
    </ns0:Messages>
    IN Integration Directory We have to route to 2 FTP servers based on Company code .
    WE have used XPATH with particular company codes TO one target Business service which we have created in ID where we are using one FTP server(FTP server 1).
    For all other company codes it has to send to second FTP server for Second business system which has been created in SLD .
    previously they used INTERFACE DETERMINATION as ENHANCED TYPE
    IF we change to STANDARD its not DISPLAYING INTERFACE MAPPING in pop up window.
    As now we created now .
    One receiver determination
    Two Interface DETERMINATIONs(As enhanced type).
    Two REceiver Agreements.
    As now we have tested
    it is sending all files to both servers.
    But we need to send to specfied FTP servers on the basis of COmpany code which we declare in XPATH expression.
    could any one can guide us
    POINTS WILL BE REWARDED FOR BEST ANSWERS..It's urgent
    THanks in ADvance
    Nandan

    Hi nandan,
    u said that u r using
    1) business service for FTP1
    2)business system for FTP2
    u have given X-path condition in Rec determination...i.e depending upon the company code it will route to business service or business system .
    so i guess there should be two reciver determination
    2 interface dtermination
    And also check ur Xpath....make sure that its like....
    if (Comp code == 1)
    go to FTP1
    if (comp code == 2)
    go to FTP2
    regards
    biplab

  • How to send a file using IOCP?

    When using blocking sockets, all I had to do to send a file was to open the file and loop through it and send it in chunks.
    But I find sending a file using overlapped sockets to be more challenging. I can think of the following approach to do it:
    I open the file and send the first chunk, and I keep track of the file handle and file position.
    Now when I get a completion packet indicating that some data has been sent, I check to see if the socket is currently in the process of sending a file, and if it is, I retrieve the file handle and file position and send the next chunk.
    I repeat step 2 until I reach the last chunk in the file, and then I close the file.
    Is this approach correct?
    Note: I don't want to use TransmitFile().

    This approach is more or less correct, but maybe you'd have to know some more things.
    If send "returns" it means, that you buffer has been copied into the internal buffer of system or the network interface card or whatever... in general it means, that you can free/reuse the buffer you have used, but it doesn't mean, that the data
    has been delivered (it does not even mean it has been sent already).
    That's why I'm normally using some flow-control (messages from the receiver) to verify the real data flow.
    The next point is, that you shouldn't read from the file only after you got the ok that the first chunk has been sent. You should read the data as soon as possible so that you can respond much quicker to a send-complete-message. I'd recommend to send using
    multiple buffers.
    Rudolf

  • How can i create a zip-file with multiple volumes

    Hi,
    i've to zip a large file (250 MB and more). But the zip file shouldn't be greater than 5 MB, because i have to send the file via E-Mail. So i've thought, that the solution of this problem can be to zip the large file in smaller zip-files, which are multiple volumes of a zip-archive. I've searched very long in WWW, but didn't find something. Perhaps you can help.
    Sorry, about the bad english. :-)
    Timo Bunger

    Hi
    Who said your english is bad ?. OK, are you looking for compressing the 250 MB file in to multiple versions using a java program ?. If not, there is a shareware you can download and split the file into multiple parts by specifying size of each part. You can send these parts via email and the other person can combine these parts into a single file again.
    Find this @
    http://www.freedownloadscenter.com/Utilities/File_Splitting_Utilities/EzSplit.html
    You may need to read a bit about it on how to use.
    Thanks
    Srinivas

  • Share files over multiple sites

    Hello everybody,
    Is there a way to use a single file from multiple sites without having to maintain them twice?
    For example I want to use the same PHP-functions in two projects (include file).
    Is there a Dreamweaver-technique which allows me to use and upload a file, that is outside of the site-root-directory.
    Librarys? Templates?
    greeting

    Is there a Dreamweaver-technique
    Firstly, this has nothing to do with Dreamweaver, so no, there isn't a DW technique. This depends on your webserver and operating system.
    The solution also depends on what kind of file you are trying to share, and if the websites are on the save server. HTML/CSS can't normally access files outside the web root, so, for instance, you can't normally share a CSS file between websites (but there is a workaround using aliases). PHP files don't have this limitation, as long as they are on the same server.
    I took a quick look at the Google hosted libraries. It looks like it is all javascript. Javascript doesn't have the same limitation that PHP has. For instance, Lots of people reference a remote copy of jQuery in their web pages.
    There is a method of sharing files across servers that involves configuring the receiving server to accept the remote file. I experimented with this some years ago but can't find any info on it now. Sorry, I can't even remember what the technique was called.  It wasn't easy to get it to work with all browsers as they have different security policies.

  • Can multiple  hosts exist on single instance

    Hi B2B gurus,
    I would like to present a scenario i am trying to work out.
    Lets say there are 2 buyers B1 and B2
    And 2 suppliers S1 and S2.
    The buyers send a PO to the supplier and the lets say the Supplier sends an Invoice to the Buyer.
    Also there are 8 agreements in all. I mean all possible combinations such that a buyer can send a PO to any supplier and a Supplier can send a invoice to any Buyer.
    My understanding of B2B is that it is generally a single Host TP and there can be multiple remote TP's.
    To make my scenario work we will need multiple host TP's. One solution for this is to install N instances of B2B. But that is not feasible.
    So is it possible to install only one instance of B2B and create multiple Host TP's and multiple agreements as i wanted.
    We can use an API or something similar for this, so that this can all be done through the backend.
    I agree that this may seem a little confusing, so if you have any queries feel free to ask them
    Thanks
    Ravi
    Edited by: Ravi R on Apr 27, 2009 4:47 PM

    I did read the two forums you have mentioned, from this my understanding is the following.
    Without tweaking the current B2B sytem i can have one TP send multiple format documents to multiple TP's without any problems.
    Eg B1 can send to S1 a PO over email . B1 can also send a Change Order to S1 via AS2/FTP?any other method.
    Is my understanding correct??
    So if i were to use the hub model as you suggested i will use different identifiers to identify multiple buyer TP's
    And hence there will be lotsa agreements all on the basis of identifiers and doc received and that will decide the target doc format and the transport delivery method.
    Qn 1 - Does this seem to make sense? (feasibility, possible issues )
    Qn 2 - What will be the performance consideration? Is there any performacne guide or so ??
    Edited by: Ravi R on Apr 28, 2009 11:53 AM

Maybe you are looking for

  • Sign-in error when trying to buy a Book?!

    Trying to purchase a book, I get an Apple account Sign-in error message. "The was an error while accessing your account information. Please check your network connection and try again." I checked my account info (login/password) using a web browser a

  • Should I buy iLife09 at this time or should I wait for iLife10 to come out?

    Is iLife10 coming out any time soon? What about iWork10?

  • Misc. Issue using LPNs in WMS Enabled Org

    All, When Misc. issue txn is done in WMS Enabled Organization, application enforces to Ship all the quantity in the LPN, is there any way to ship partial quantity in an LPN apart from unpacking and performing Misc. Issue. Regards, LS

  • Can't change the HTML editor in Robo7

    When I click on Tools, Options, I get this message: Internal Error: Can't get right editor's information. Subsequently, there are no HTML editors listed and the option to ADD is grayed out. Tried several times to reinstall along with Ver .2, to no av

  • Compare dreamweaver 8 and MX 2004

    I am trying to sign up for an online course and they are asking me to have MX 2004, but they won't tell me if DW8 will work for the class instead. Are there extreme differences?