ICE whether has a method to indentify which client invoke server interface, but not by client parameter.
|
|
ICE whether has a method to indentify which client invoke server interface, but not by client parameter.
Last edited by ouloba; 11-18-2004 at 11:29 PM.
hi,
your client can send additional information to the server by using
the Context.
I use this for sending user authentication from client to the server.
code sample:
Ice.Context _context = new Ice.Context();
_context.Add( "username", user );
proxy.DoSomthing( ...., _context );
you can also assign the context to the proxy, so the proxy always uses
th defined context:
SomeProxyPrx proxy_with_context =
SomeProxyPrx .uncheckedCast( proxy.ice_newContext( _context ) );
I hope this helps!
cu tom
Thank for your directions
There are currently 1 users browsing this thread. (0 members and 1 guests)