[omniORB] Acquiring client IP and port within servant method?

Mike Mascari mascarm at mascari.com
Mon Aug 16 21:54:39 BST 2004


Burton, Craig wrote:

> Hi,
> 
> We've utilized Brecht Vermueulen's approach to getting the client
> IP and port via interceptors.  What we find ourselves needing to
> do now is get the IP:port from within a servant method.  Is this
> possible?

I think the standard methodology is to stuff the client IP into 
thread storage with pthread_setspecific() in the omniORB Interceptor 
handler and later access that thread storage within a servant method 
by calling pthread_getspecific().

At least that's how I do it.

Hope that helps,

Mike Mascari




More information about the omniORB-list mailing list