Re: Can a CORBA server return a pointer to a GTK+ object?
- From: sopwith redhat com (Elliot Lee)
- To: gnome-devel-list gnome org
- Subject: Re: Can a CORBA server return a pointer to a GTK+ object?
- Date: 15 Mar 1999 01:50:03 GMT
On Sun, 14 Mar 1999 09:02:44 -0500, Matthew Loper <matthew@loper.org>
wrote:
>can't you do it if you know the server is collocated/inproc?
You will still have to handle the case where the server is remote, and
then you wind up with a special-cased mess.
>on the topic, is there any way to check if a server is inproc?
There's no "CORBA_Object_server_is_same_process()", but you can use a
simple shared-secret challenge to find out with a reasonable degree of
certainty:
interface MyObject {
boolean in_proc_p(in long pid);
};
This would be comparing the PID of requestor & requestee, and perhaps
setting an environment variable in the client to check if it is set in the
server.
There are, of course, ORB-specific ways to do it.
-- Elliot
Lbh'er fhccbfrq gb gel bar bs gubfr fvyyl EFN-va-guerr-yvarf .fvtangherf
ba guvf, svefg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]