Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

_this() returns stub reference?

0 views
Skip to first unread message

Murray Cumming

unread,
Mar 8, 2002, 7:27:16 AM3/8/02
to
I'm trying to implement the ORBit2 C++ binding, and I've hit this
point of confusion:

The Servant's _this() method returns an object reference, for
instance:

namespace POA_hellomodule
{

class Hello
{
.. blah ...
hellomodule::Hello_ptr _this();
...blah ...
};

} //namespace

Is that a client object reference? Do all server implementations
therefore need to link in the stubs too? I think I might be
misunderstanding something fundamental here.

Frank Pilhofer

unread,
Mar 8, 2002, 11:58:21 AM3/8/02
to
Murray Cumming <mur...@usa.net> wrote:
>
> The Servant's _this() method returns an object reference, for
> instance:
> Is that a client object reference?
>

Yes.

(One could of course argue that there's no such thing as a "client"
object reference, but just "object references" that can be used by
clients and servers for various purposes.)

Frank


--
Frank Pilhofer ........................................... f...@fpx.de
The great advantage of compact cars is that you can get twice as
many of them into traffic jams. - Alfred E. Neuman

Bill Lloyd

unread,
Mar 8, 2002, 12:30:22 PM3/8/02
to
Typically, the skeleton files directly #include the client stub files. On
the server, you will be working with both the stub and skeleton files.

That the call to _this() is doing is converting (well, "converting" isn't
the exact right word, but...) the *servant* to an *object reference*.

-B


"Murray Cumming" <mur...@usa.net> wrote in message
news:474223b5.02030...@posting.google.com...

0 new messages