[omniORB] Python interceptors - no way to get peer identity

Duncan Grisby duncan at grisby.org
Tue Jun 1 13:42:57 BST 2010


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