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

Sander Steffann s.steffann at computel.nl
Thu Sep 21 11:43:47 BST 2006


Hi,

> 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.

You can add/read a service context in interceptors. You can (for example) 
put an id or username/password in there without modifying the IDL of your 
interfaces. This is what we do in our application. For security an SSL 
connection might be a good idea.

Good luck,
Sander.





More information about the omniORB-list mailing list