Results 1 to 3 of 3

Thread: How to efficient send large data over multiple points

  1. #1
    Hugie is offline Registered User
    Name: Hanno Hugenberg
    Organization: Fraunhofer IFF Germany
    Project: ManuVAR
    Join Date
    Nov 2010
    Posts
    2

    Question How to efficient send large data over multiple points

    Hi Everyone,

    I'm new in a project, which uses ICE for almost everything .
    While trying to start the developing, i stumbled uppon a small, maybe big problem.

    Let me discribe what i want to do, so you better understand my question:

    We got 3 ICE Applications {A,B,C}

    A is holding data, B works with some data, and C controls everything by sending commands.
    Connection between these 3 Applications is A<->C<->B, so no direct communication between A and B.

    What i do is:
    a user presses a "LoadFile" button in C.
    C asks A for the file and reads the file in its memory.
    After succesfull reading, C sends the file to B for further processing.

    What i WANT to do is:
    a user presses a "LoadFile" button in C.
    C asks A for the file and reads a "ice-object-reference" of the data.
    C sends the "ice-object-reference" to B.
    B open/use/map/whatever the "ice-object-reference" and receives the file directly from A.

    Question:
    Is it possible to implement this in ice in a simple way? So that i can pass the file data from A to B without transfering all data over C, and without opening a connection between A and B by myself.
    Is there a way for this to let ice handle the communication all by itself, so me as a programmer does not need to open a connection between the two points?

    i hope there is a way to do this in ice.

    Greetings and thx for your (hopefully) manymany answer

    Hugie

    System Informations:
    * Ice version (Ice 3.4.1)
    * Compiler version (Visual Studio 2008)
    * Languages (C++, python)
    * Operating system (at the moment Windows only)

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Hugie,

    Welcome to our forums!

    As an Ice programmer, you usually let Ice take care of connection management for you: the first time you use a proxy, Ice transparently establishes the connection to the target server, and if this connection is ever closed, Ice will re-establish it automatically.

    For a detailed look at connection management in Ice, please refer to http://www.zeroc.com/newsletter/issue24.pdf. You may also want to read the article about proxies in http://www.zeroc.com/newsletter/issue23.pdf.

    In your scenario, you just want to pass around a proxy to an object in A (the object holding the data). This proxy will contain addressing information to the Ice object adapter in A that hosts this object/servant, e.g.:
    dataHolder:tcp -h dataserver -p 10000

    You can pass this proxy between all your applications. Passing around a proxy does not establish any connection--it's only when you use a proxy to send a remote call that the connection is opened.

    So, your B application will get this proxy from C, and when you use this proxy in B, Ice will transparently open a TCP connection directly between B and A.

    Hope this is clearer now!

    Best regards,
    Bernard
    Last edited by bernard; 11-19-2010 at 03:32 PM.
    Bernard Normier
    ZeroC, Inc.

  3. #3
    Hugie is offline Registered User
    Name: Hanno Hugenberg
    Organization: Fraunhofer IFF Germany
    Project: ManuVAR
    Join Date
    Nov 2010
    Posts
    2
    Perfect.
    Thank you very much. Very Clear and a very good system.

    As soon as i'm at work again, i will use the way how you explained it

    Have a nice weekend
    Hugie

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question for send large data
    By wangjun in forum Help Center
    Replies: 4
    Last Post: 11-29-2010, 04:54 AM
  2. Use ICE to send large files(C++)?
    By thelONE in forum Help Center
    Replies: 6
    Last Post: 10-15-2005, 08:18 PM
  3. Question about sending large data.
    By JaneShang in forum Help Center
    Replies: 3
    Last Post: 10-14-2005, 12:25 PM
  4. Large chunks of data
    By mwilson in forum Help Center
    Replies: 6
    Last Post: 09-12-2005, 10:37 PM
  5. Transferring files/large data blocks
    By deepone in forum Help Center
    Replies: 3
    Last Post: 04-29-2004, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •