Results 1 to 3 of 3

Thread: out Parameters

  1. #1
    peter is offline Registered User
    Name: Peter Jaxy
    Organization: Reihnisch Westfälisch technische Hochschule
    Project: Integrative Production Technologie
    Join Date
    Jan 2009
    Posts
    30

    out Parameters

    I have the following question:

    I use in my interface definition a method, called "getDataString(string value, out string)".
    My client use AMI to involve this method.
    But I can't reach the out Parameter.

    Have I to use AMD on the server side to reach the out Parameter while I'm using AMI on the client Side?

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    No. The usage of AMI on the client side has no relation to AMD on the server side (and vice versa). That is the client is unaware how the server implements its servants, and the server is unaware of how the client calls upon its objects.

    The out parameter is returned in the AMI callback. For example, for this interface:

    Code:
    interface Foo
    {
        ["ami"] void doit(string inparam, out string outparam);
    };
    You would call on the proxy.

    Code:
        bool doit_async(const ::Demo::AMI_Foo_doitPtr&, const ::std::string&);
    And the outparam is returned in the ice_response callback.

    Code:
    class AMI_Foo_doitI : AMI_Foo_doit
    {
    public:
    
        virtual void ice_response(const ::std::string&);
        virtual void ice_exception(const ::Ice::Exception&);
    };

  3. #3
    peter is offline Registered User
    Name: Peter Jaxy
    Organization: Reihnisch Westfälisch technische Hochschule
    Project: Integrative Production Technologie
    Join Date
    Jan 2009
    Posts
    30

    Smile out parameter

    Thank you very much for your help!

    It works now!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. classes as out parameters
    By halfhp in forum Help Center
    Replies: 2
    Last Post: 10-19-2009, 01:10 PM
  2. Out-Parameters
    By soff.dong in forum Help Center
    Replies: 9
    Last Post: 09-25-2008, 04:41 AM
  3. Sockets parameters in ICE
    By gyarmit in forum Comments
    Replies: 2
    Last Post: 06-19-2007, 09:32 AM
  4. in data with out parameters?
    By ctennis in forum Help Center
    Replies: 1
    Last Post: 06-29-2006, 09:48 AM
  5. Passing parameters to constructor
    By jacopo in forum Help Center
    Replies: 2
    Last Post: 05-12-2005, 12:47 PM

Posting Permissions

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