[Mono-dev] Question about Remoting and Localendpoint
pablosantosluac
pablosantosluac at terra.es
Fri Dec 29 15:57:48 EST 2006
thanks Robert. Ok, I would rather prefered something easier but let's see
whether I can make it run...
It's a pity such information is not available in any other way
----- Original Message -----
From: "Robert Jordan" <robertj at gmx.net>
To: <mono-devel-list at lists.ximian.com>
Sent: Friday, December 29, 2006 7:33 PM
Subject: Re: [Mono-dev] Question about Remoting and Localendpoint
pablosantosluac wrote:
> Hi all (Lluis¿?),
>
> Is there a way to retrieve a Localendpoint at a remoting application? I
> mean, you export an object using remoting, then is it possible when a
> method
> is invoked inside the object, to retrieve data about the remoting channel
> or
> even better, the localendpoint?
This is not possible. Neither MS.NET's nor Mono's transport channels
provide this information to the upper sinks.
You could create a custom ServerChannelSink and create as many
channels as interfaces, while using the proper channel properties
(for TcpChannel: bindTo="ip-address").
When processing messages, the custom sink should access
the lower sink's channel property and inject it in the CallContext
of the method. In the method itself you can access this data
using CallContext.GetData.
Robert
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list