|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Phil Reynolds (preynolds
RIDGEWAYSYSTEMS.COM)Date: Wed Mar 27 2002 - 03:27:49 CST
No. You can't tell. It is a tenet of DCOM that the client should be unaware
of the location of the server. It doesn't quite achieve this, but it's
close.
There are mechanisms such as channel hooks that allow you to snoop the
network packets etc. and determine the location of the server, but they are
not "supported" features.
If you really, really need to know then design the server with a means to
tell you where it's at.
---------------------------------------------------------
Phil Reynolds
Ridgeway Systems and Software
Tel: +44 118 938 1211
Fax: +44 118 935 4444
mailto:preynolds
ridgewaysystems.com
http://www.ridgewaysystems.com
> -----Original Message-----
> From: Vagish Kalligudd [mailto:vagish.kalligudd
CELSTREAM.COM]
> Sent: 26 March 2002 18:54
> To: DCOM
DISCUSS.MICROSOFT.COM
> Subject: [DCOM] Is the server local
>
>
> Hi all,
> Is there any reliable way to know if the server is
> local or remote?
> I am launching the COM EXE by hostname and using CLSCTX_LOCAL_SERVER |
> CLSCTX_REMOTE_SERVER. At some point in the client I want to
> know whether I
> am connected to the local or remote server. Can I get this
> information given
> the IUnknown pointer to the server component?
>
> Thanks,
> Vagish
>
> ----------------------------------------------------------------
> Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
> contains important info. Save time, search the archives at
> http://discuss.microsoft.com/archives/index.html .
> To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
>
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:DCOM-signoff-request
DISCUSS.MICROSOFT.COM
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]