[omniORB] Python interceptors - no way to get peer identity
Konstantin Olkhovskiy
lupus at oxnull.net
Thu Jun 3 22:13:55 BST 2010
Actually i've made such a patch while waiting for answer. :)
But my current approach will break all existing omniORBpy code...
I will post it to dev mailing list as soon as some sane implementation is done.
1 июня 2010 г. 15:42 пользователь Duncan Grisby <duncan at grisby.org> написал:
> On Tue, 2010-05-25 at 17:37 +0400, Константин Ольховский wrote:
>
>> Using C++ implementation one can get connection object and call
>> peeraddress and peeridentity.
>> But it is impossible to get it in python interceptors.
>> Is threre any sane way to do it?
>> May be a patch passing more arguments to python interceptor? Some dict
>> containing caller info or something...
>
> You're right that that information is not currently available to Python.
> The main issue to making it available is mapping all the various C++ / C
> data structures into Python.
>
> For specific things, you could certainly extend the Python interceptors
> to take an additional dictionary of information, or something similar.
> If you do come up with such a patch, you should add an extra optional
> argument to addServerReceiveRequest() to indicate that the function it
> is given accepts the extra parameter. Otherwise, any change to the
> expected function signature will break all existing code.
>
> Cheers,
>
> Duncan.
>
> --
> -- Duncan Grisby --
> -- duncan at grisby.org --
> -- http://www.grisby.org --
>
>
>
--
Константин Ольховский
Хостинг "Джино"
More information about the omniORB-list
mailing list