[omniORB] How to get file descriptor from a CORBA request?

Duncan Grisby duncan at grisby.org
Wed Sep 20 18:36:31 BST 2006


On Tuesday 12 September, Tuyen Chau wrote:

> I'm porting an Orbix application to omniORB.  In this Orbix
> application, we use the CORBA::Environment object passed in each CORBA
> request to obtain the client's file descriptor.  This file descriptor
> tells us which client makes the request so we can maintain information
> on a per client basis.  Is there any way to get that information from
> omniORB?

No, you can't get the file descriptor. And anyway, omniORB clients can
open multiple concurrent connections, and close idle connections, so the
file descriptor is not a useful indication of which client is which.
With server-side interceptors, you can access internal connection state,
and try to construct some idea of which client is which based on IP
address, but by far the simplest thing to do is for clients to identify
themselves in the calls.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list